diff --git a/pkg/csiproxy/csi.go b/pkg/csiproxy/csi.go index a18c111d..26319467 100644 --- a/pkg/csiproxy/csi.go +++ b/pkg/csiproxy/csi.go @@ -134,7 +134,9 @@ func (p *Proxy) download() error { } // default to insecure which matches system-agent functionality - transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}} + // if a proxy is set with the proper envvars, we will use it + // as long as the req does not match an entry in no_proxy env var + transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, Proxy: http.ProxyFromEnvironment} if p.tlsCfg != nil && !*p.tlsCfg.Insecure && p.tlsCfg.CertFilePath != "" { transport.TLSClientConfig.InsecureSkipVerify = false