-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
TLSServerName is not taken into account #3241
Comments
Yeah, that's not currently supported in our TLS. We'd be happy to take a PR to add support. |
I’m not a Java developer, I reported this issue because some applications from my company use the Java client and some of our customers use Teleport so the said apps don’t work for them. Our Java developer don’t have any bandwidth to take this matter into his hands, so I hope someone could work on this 🙏 |
Hello, |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Describe the bug
When using a kubeconfig which defines a
tls-server-name
field different from theserver
field, the client fails to validate the cluster certificate.As a workaround, setting
insecure-skip-tls-verify: true
and removingcertificate-authority-data
from the kubeconfig file works.Client Version
20
Kubernetes Version
1.28.6
Java Version
17
To Reproduce
Get a kubeconfig with a
tls-server-name
field different from theserver
field. This is the case with the kubeconfig files generated by Teleport. Run theKubeConfigFileClientExample.java
:Expected behavior
The client respects the
tls-server-name
field and uses this hostname to verify the TLS certificate.KubeConfig
Server (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: