Originally published on Medium: https://medium.com/@seshikanthguduri/when-enforcing-tls-1-3-broke-our-ci-builds-d0b026e699eb
The registry got more secure. The builds got red. Both were telling the truth.
TLS 1.3 negotiation: the CI runner asks, the registry answers, and only a shared protocol version opens the tunnel.
Security work has a cruel property: the correct change can still take the pipeline down. We enforced TLS 1.3 on the remote artifact registry that our CI system publishes to. The change was right. It was also the start of a wave of failed Java builds, broken Maven and Gradle publishes, and curl uploads that suddenly could not complete a handshake. Nothing about the failure looked like a TLS version problem at first, which is why it is worth writing down in full.
The change that looked safe
The registry endpoint was tightened to require TLS 1.3. Older protocol versions were dropped on purpose: TLS 1.3 removes legacy cipher suites, shortens the handshake, and encrypts more of the negotiation.…