-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not connect to API server enforcing TLS 1.3 #5125
Comments
SSLUtils.sslContext is specifying 1.2, which unfortunately limits the protocol support to that level. This will need a code fix. |
Lines 85 to 93 in b095b78
|
shawkins
added a commit
to shawkins/kubernetes-client
that referenced
this issue
May 15, 2023
shawkins
added a commit
to shawkins/kubernetes-client
that referenced
this issue
May 15, 2023
11 tasks
shawkins
added a commit
to shawkins/kubernetes-client
that referenced
this issue
May 15, 2023
manusa
pushed a commit
to shawkins/kubernetes-client
that referenced
this issue
May 22, 2023
manusa
pushed a commit
to shawkins/kubernetes-client
that referenced
this issue
May 24, 2023
manusa
pushed a commit
that referenced
this issue
May 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In my kube-apiserver I enforce TLS 1.3 with the --tls-min-version=VersionTLS13 flag.
Connecting via curl works fine but the kubernetes client throws a protocol_version exception during SSL handshake.
At first I did not have any custom kubernetes client config. I also tried specifying TLS 1.3 explicitly which produces the same outcome (logs below):
When only setting TlsVersion.TLS_1_3 in the client I get a different error:
I tried out all kinds of different things to get this working but nothing helped. I also made sure that it is not an issue with our application (Java 17) but another client can connect to servers with TLS 1.3 without any issue.
Fabric8 Kubernetes Client version
other (please specify in additional context)
Steps to reproduce
Expected behavior
The client should be able to connect to a server with TLS 1.3 without any changes/issues since TLS 1.3 is part of okhttp3 MODERN_TLS.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
other (please specify in additional context)
Environment
Linux
Fabric8 Kubernetes Client Logs
Additional context
Kubernetes Client version 6.6.0 (also tried with 5.12.3)
Kubernetes API Server version: 1.26.1
The text was updated successfully, but these errors were encountered: