Improve TLS handling in OpenIDConnectAuthenticator by abnsy · Pull Request #4417 · kubernetes-client/java

@abnsy

I’m sending a small security improvement for the OIDC authenticator. When the kubeconfig doesn’t include idp-certificate authority-data the code leaves sslContext as null and falls back to the OS trust store. This can behave differently depending on the environment and isn’t always secure. In this update I added a default SSLContext that always uses the system CA.... If the user provides a custom CA, that one is still loaded and used instead. No behavior change other than making TLS more consistent and safer. Thanks!

@k8s-ci-robot k8s-ci-robot added cncf-cla: no

Indicates the PR's author has not signed the CNCF CLA.

size/S

Denotes a PR that changes 10-29 lines, ignoring generated files.

cncf-cla: yes

Indicates the PR's author has signed the CNCF CLA.

and removed cncf-cla: no

Indicates the PR's author has not signed the CNCF CLA.

labels

Nov 20, 2025

brendandburns

macarte

macarte

macarte

macarte

macarte