upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

up ignores https_proxy environment variable #294

Open AlectoTheFirst opened 1 year ago

AlectoTheFirst commented 1 year ago

What happened?

Behind a Corporate Proxy and no external DNS resolution (DNS resolution must happen at Proxy end) up login fails with:

up login Username: something Password: something

up: error: unable to login: Post "https://api.upbound.io/v1/login": dial tcp: lookup api.upbound.io on ipfromourdns:53: no such host

Attempted settings both upper and lowercase https_proxy environment. Attempted running: HTTPS_PROXY=http://someproxy:8080 up login

How can we reproduce it?

Make sure no external (public) DNS resolution is possible and Internet access is only possible via HTTP Proxy Attempt to login to upbound API/Marketplace

What environment did it happen in?

up v0.15.0 from official homebrew-tap on macos ventura 13.2 (x86) (brew install upbound/tap/up)