When Enforcing TLS 1.3 Broke Our CI Builds
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…
When enforcing TLS 1.3 on a remote artifact registry used by a CI system, it broke CI builds, causing Java builds, Maven, Gradle publishes, and curl uploads to fail. The registry tightened its requirements to TLS 1.3, dropping older protocol versions and encrypting more of the negotiation. The failure was due to the client's inability to negotiate TLS 1.3, leading to the handshake being terminated and generic error messages.
Java builds were most affected, as the JVM determines the client's TLS versions based on the JDK version and updates. The fix involved setting the client protocol list with the system property jdk.tls.client.protocols and updating upload scripts to allow the latest TLS version. This change strengthened security without weakening it, as the registry still required TLS 1.3.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to