-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
tsh ignores HTTPS_PROXY #8108
Comments
Related see #9376 |
hey @atburke I'm the original reporter
this tls.Dial here will fail: Line 2211 in d33f51d
It should be using something like this: teleport/lib/utils/proxy/proxy.go Line 216 in e8f9220
|
@johns-carta This is with |
Correct, Teleport v8.1.6-dev.1 git:v8.1.6-dev.1-0-g40cbd171f go1.17.3 |
this works
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
With HTTPS_PROXY set, I would expect
tsh login
to use that. It seems to ignore that and instead try to make the connections directly.Our docs do make reference to using HTTP_PROXY / HTTPS_PROXY environment variables, but not specifically for tsh.
Reproduction Steps
I have a clonable gist that illustrates the problem: https://gist.github.com/programmerq/d053ae8acde4c7e467b44a32817750ef
Clone the gist, put your own license.pem (since it is using teleport enterprise), and follow the instructions in the gist readme.
If not using the gist, the idea is to set up a teleport server and try to access it via an HTTP CONNECT style proxy with
http_proxy
,HTTP_PROXY
,https_proxy
, andHTTPS_PROXY
all set to the same thing. In my test, I used a tinyproxy instance and confirmed thatcurl
was able to access the teleport API endpoint successfully with those variables set. In a proper lab setup, unsetting the variables should cause a failure due to the teleport URL due to timing out.Server Details
reproduced in the compose file with the following:
teleport version
): 7.1.0 (from thequay.io/gravitational/teleport-ent:7.1.0
docker image)/etc/os-release
): Ubuntu 20.04.3 LTSClient Details
tsh version
): Teleport v7.1.0 git:v7.1.0-0-gb52a7d89f go1.16.2Debug Logs
Please include or attach debug logs, when appropriate. Obfuscate sensitive information!
teleport --debug
)tsh --debug
)The text was updated successfully, but these errors were encountered: