-
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
fix: allowing the usage of authenticated http proxies for https #6371
Conversation
Just a couple of thoughts - if anyone is using non-basic proxy authorization with Jetty or vert.x these changes will break that - you'll have to add back the usage of the built-in header interceptor for that to work. It would also be good to document the difference in support that Jetty and vert.x don't support non-basic http proxy authorization with https endpoints. I'm also looking at the vertx implementation to see how easy of a fix it would be for it to consider the current header values when making the connect request. It is possible, but without changes in Netty it will report the wrong auth scheme in logging / exceptions. Beyond the scope of the http proxy case, the header based strategy doesn't work for socks4/5 (socks5 is talked about in the kube docs https://kubernetes.io/docs/tasks/extend-kubernetes/socks5-proxy-access-api/). For username/password authentication to work there for okhttp and jdk, we'll need to utilize their respective built-in support for authentication. |
Signed-off-by: Marc Nuri <[email protected]>
8cdfb77
to
96076fa
Compare
This should be good to go now. Further changes in the 7.x.x release are covered in the scope of #6373 and #6372. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one small clean up.
httpclient-jetty/src/main/java/io/fabric8/kubernetes/client/jetty/JettyHttpClientBuilder.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Steven Hawkins <[email protected]>
Quality Gate failedFailed conditions |
Awesome! Thanks! |
Description
Precedes (or supersedes) #6352
Fixes #6350
This is an adaptation of #6352 with no breaking changes.
We can go forward with the changes in the HttpClient interfaces for proxy authorization credentials once this one is merged.
Please @shawkins, check everything aligns with the expected fix.
/cc @cescoffier
Type of change
test, version modification, documentation, etc.)
Checklist