Skip to content

online::clone: validate user:pass in HTTP_PROXY#4556

Merged
ethomson merged 1 commit intomasterfrom
ethomson/proxy_pass_in_env
Apr 16, 2018
Merged

online::clone: validate user:pass in HTTP_PROXY#4556
ethomson merged 1 commit intomasterfrom
ethomson/proxy_pass_in_env

Conversation

@ethomson
Copy link
Copy Markdown
Member

Validate using the http://user:pass@host/ format in HTTP_PROXY and HTTPS_PROXY environment variables.

Note that we don't actually have a way to ensure that our proxy was contacted. So this test would pass even if there was a code error that meant that requests went direct to the server, bypassing the proxy.

I certainly don't have a proxy-neutral way to enforce that, offhand... I guess we could expose and endpoint in the remote code that will get headers back, and we could see if a Via is set. That would probably be effective, but sort of ugh, and assumes that some transparent proxy doesn't add a Via header itself.

Validate using the http://user:pass@host/ format in HTTP_PROXY and
HTTPS_PROXY environment variables.
Copy link
Copy Markdown
Member

@pks-t pks-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright to me. Won't merge it myself though, as I don't have enough knowledge around our proxying stuff. Feel free to do so, @ethomson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants