-
Notifications
You must be signed in to change notification settings - Fork 543
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
ERR_TLS_CERT_ALTNAME_INVALID error for proxy-url feature #2246
Comments
It appears that you are connecting to 'localhost' as the API server, but that is not in the subject names that are in the certificate (as expected). What is the |
It seems like this is a bug in the |
Yes, i'm trying to prepare more snippet to prove that. BTW, is anyone tested the |
@brendandburns already confirm the problem, it seems that |
Describe the bug

I metioned that in the client-node sdk main branch, it implemented proxy-url feature, it would be very useful for local development. But when I use the client-node sdk, and the kubeconfig file contains proxy-url field, it will output the following error:
Client Version
e.g.
0.12.0
not a stable release version, just in the main branch.
Server Version
e.g.
1.19.1
v1.28.3
To Reproduce
Steps to reproduce the behavior:
prepare a kubeconfig file with proxy-url, and use the
loadFromFile
method to init the client-node sdk.Expected behavior
A clear and concise description of what you expected to happen.
I expected the sdk can work with the proxy-url, and visit the kubernetes apiserver.
Example Code
Code snippet for what you are doing
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
I try to solve the problem by diving into the source code. Here is some analysis for the problem: TooTallNate/proxy-agents#365, maybe it will help the community team to solve the problem~
The text was updated successfully, but these errors were encountered: