-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Plaintext TCP connection to proxy when http_proxy points to HTTPS URL #3573
Comments
Proxy doesn't control transport credentials. To use TLS, please see https://github.com/grpc/grpc-go/tree/master/examples/features/encryption#tls |
Hi @menghanl, I'm not sure we talked about the same thing. E.g. if I use the same setup with Best, |
Oh, I see. Why do you want to the proxy connection also to be TLS, instead of between client and the backend? |
Hi menghanl, there's three reasons I opened the bug:
However, I fully understand that this might be quite some effort and low priority! I still thought it might be a valid thing to make the team aware of :) I'd also be happy to extend the documentation on that so that users at least can read up on the behavior and work around it. Thanks, |
The current proxy solution has some other problems, for example #3401. We have plans to update the proxy APIs (an separate proxy plugin instead of using dialer). We can see if this problem can be better solved in the new API. |
Awesome, thank you! |
What version of gRPC are you using?
Most recent, I tested with https://github.com/grpc/grpc-go/tree/master/examples/helloworld/greeter_client
What version of Go are you using (
go version
)?go version go1.14.2 darwin/amd64
What operating system (Linux, Windows, …) and version?
macOS 10.14.6
What did you do?
I used the sample greeter_client:
http_proxy="https://myproxy:443" ./greeter_client
What did you expect to see?
I expected a TLS connection to
myproxy:443
over which aHTTP CONNECT
request is performed.What did you see instead?
I saw a plain-text non-TLS connection to
myproxy:443
over which theHTTP CONNECT
request took place.The text was updated successfully, but these errors were encountered: