Skip to content
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

TLS SNI is missing when using lens proxy #18

Open
KarstenB opened this issue May 25, 2024 · 2 comments
Open

TLS SNI is missing when using lens proxy #18

KarstenB opened this issue May 25, 2024 · 2 comments

Comments

@KarstenB
Copy link

KarstenB commented May 25, 2024

We have an nginx reverse proxy in front of our k8s clusters that is directing the tcp stream to the proper k8s api server based on the SNI. This works fine when interacting with the cluster.

However kubectl exec and port-forward doesn't work with the lens proxy. I took some time to investigate, and it turns out that the CLIENT HELLO packet of the TLS stream is missing the server_name Extension. Obviously our nginx doesn't know to which server to relay the request to if the SNI is missing. I am not quite sure why it is missing for this scenario though.

To reproduce:

  • Start wireshark on k8s api server
  • Run kubectl exec into a pod with the lens proxy
  • Run kubectl exec into a pod with the original kubeconfig
@jakolehm
Copy link
Contributor

@KarstenB thanks for the detailed report! Did you test this just with lens-k8s-proxy or was the whole Lens Desktop application involved?

@KarstenB
Copy link
Author

I tried it with the whole lens desktop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants