You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the client-node sdk(you can treat the sdk as another client-go sdk implementation for node), if there is a proxy-url in the kubeconfig file, client-node sdk will create agent for proxy request to kubernetes apiserver.
Problems
The feature seems not work for me, code snippet as following:
I think it's the problem of omitting host fileld, for duo tls verification, proxy-agents should not ignore the host field. If ignoring the host field, node.js seems to add host=localhost internally, which equals to setting wrong host field
Background
I found that the client-node sdk(you can treat the sdk as another client-go sdk implementation for node), if there is a
proxy-url
in the kubeconfig file, client-node sdk will create agent for proxy request to kubernetes apiserver.Problems
The feature seems not work for me, code snippet as following:
error occured:

the root cause for the error is that, when invoke the
tls.connect
, the proxy-agents sdk will ignore the host information:proxy-agents/packages/socks-proxy-agent/src/index.ts
Lines 191 to 199 in 536aaa5
And I try to add host field by removing the host field from omit list, like following:

It seems it works, so any explantation about omitting host field, and should we avoidding omit host field? @TooTallNate
The text was updated successfully, but these errors were encountered: