China's COSCO taking an ownership stake in Hamburg port was opposed by the Greens and Free Democrats parties in the three party coalition government with the SPD in Germany. Scholz of the SPD went ahead over their opposition saying this will preserve jobs in Hamburg port. In the compromise reached the ownership is capped at 24.99% so that no foreign country owns a majority stake. At one point Germany's cyber security agency BSI classified the Hamburg port as critical infrastructure.
China is Germany's largest trading partner for 7 years with trade reaching a record $320 billion.