Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Openstack OS_AUTH_URL cannot be accessed through proxy #628

Open
michalmedvecky opened this issue Mar 29, 2017 · 0 comments
Open

Openstack OS_AUTH_URL cannot be accessed through proxy #628

michalmedvecky opened this issue Mar 29, 2017 · 0 comments

Comments

@michalmedvecky
Copy link

michalmedvecky commented Mar 29, 2017

My OS_AUTH_URL is accessible only through proxy so I tried to set both http_proxy and HTTP_PROXY env vars, but none of them was accepted by docker-machine (docker/machine#4040
), which uses gophercloud for Openstack management.

After a long while, I figured out that golang's HTTPClient as used in gophercloud completely ignores those settings and googled that one has to use:

client.HTTPClient.Transport = &http.Transport{Proxy: http.ProxyFromEnvironment}

so go picks http_proxy from env vars.

I've added the mentioned construct to https://github.com/rackspace/gophercloud/blob/master/provider_client.go#L190 and it started working for me.

Can someone responsible pick the right place to add this line to the code?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant