GitLab doesn't pass username/password when attempting to traverse proxy
I'm working on configuring GitLab integrations, and this is requiring us to configure GitLab to traverse our proxy. I have declared both http_proxy
and https_proxy
variables within the gitlab_rails['env'] section of the gitlab.rb
file like this:
gitlab_rails['env'] = {
"http_proxy" => "http://USERNAME:PASSWORD@proxyaddress.com:8080",
"https_proxy" => "http://USERNAME:PASSWORD@proxyaddress.com:8080",
}
However, despite us having declared a username and password, we receive a response code of 407 Proxy Authentication Required
.
When I spoke with someone who has access to the proxy, they said GitLab was not passing any username or password credentials to the proxy server.
This appears to be a duplicate of Issue 926; this issue was closed, however the only solution appears to have been configuring the proxy to not require a username and password. Additionally, the last post appears to be from another user experiencing the same issue.