Proxy option not working when downloading remote Image #6691
bunseokbot
started this conversation in
Bugs
Replies: 1 comment
-
Line 129 in 1ad47c2 The misconfiguration bundle didn't support HTTP proxy prior to v0.51.0. The latest version should resolve your problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I was doing some analysis on an issue raised by Trivy Operator and found that
buildPolicyLoader
was not applying the HTTP_PROXY / HTTPS_PROXY options while downloading the Image artifact.Ref. aquasecurity/trivy-operator#2072
Desired Behavior
When HTTP_PROXY / HTTPS_PROXY env set,
httpTransport
method called with Proxy option.Ref. https://github.com/aquasecurity/trivy-operator/blob/main/pkg/policy/loader.go#L95
Ref. https://github.com/aquasecurity/trivy/blob/main/pkg/remote/remote.go#L125
Actual Behavior
Because the proxy option is not defined, so it is called directly without going through a proxy.
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
Standalone
Debug Output
Operating System
AlmaLinux 9
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions