Kafka client TLS registry integration ignores reload-period: SSLContext is cached for the client's lifetime
Describe the bug
QuarkusKafkaSslEngineFactory.configure() calls TlsConfiguration.createSSLContext() once and caches the result in a field. shouldBeRebuilt() always returns false, reconfigurableConfigs() is empty, and the class does not observe CertificateUpdatedEvent. VertxCertificateHolder.reload() swaps the keystore and truststore and TlsCertificateUpdater fires the event, but nothing rebuilds the Kafka SSLContext, so quarkus.tls..reload-period has no effect on Kafka clients. A process keeps presenting the client certificate and trusting the anchors it loaded at startup until it is restarted.
Expected behavior
After the registry reloads a TLS configuration, connections opened by Kafka clients use the new key material, as the TLS registry reference documents for reload-period.
Actual behavior
Clients keep the startup material. With short-lived client certificates (cert-manager, SIP-TLS and similar), a long-running pod stops being able to authenticate once the certificate on disk rotates and the old one expires. Established connections keep working, so the failure surfaces only when a connection has to be re-established during something like a broker restart, a rebalance, a new partition leader. Under TLS 1.3 the broker's rejection of the stale client certificate arrives after the client's handshake completes, so the client reports it as Failed re-authentication ... (Failed to process post-handshake messages) and the broker logs SSL handshake failed, which reads like a SASL re-authentication problem rather than a stale certificate.
How to Reproduce?
kafka-tls-reload-reproducer.zip
Output of uname -a or ver
Linux 6.8.0-138-generic x86_64 GNU/Linux
Output of java -version
openjdk 25.0.2 2026-01-20 LTS
Quarkus version or git rev
3.39.4
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.6.3
Additional information
No response
Source: quarkusio/quarkus