Skip to content

Commit

Permalink
Support fetching certificate URL via proxy environment variables (#1419)
Browse files Browse the repository at this point in the history
Signed-off-by: itchyny <itchyny@cybozu.co.jp>
  • Loading branch information
itchyny committed Jan 12, 2024
1 parent 098a30b commit c45a5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubeseal/kubeseal.go
Expand Up @@ -122,7 +122,7 @@ func openCertURI(uri string) (io.ReadCloser, error) {
// than using the file:// scheme below because there is no point in complicating our lives
// and escape the filename properly.

t := &http.Transport{}
t := &http.Transport{Proxy: http.ProxyFromEnvironment}
// #nosec: G111 -- we want to allow all files to be opened
t.RegisterProtocol("file", http.NewFileTransport(http.Dir("/")))
c := &http.Client{Transport: t}
Expand Down

0 comments on commit c45a5ce

Please sign in to comment.