-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to pull images from GCR #392
Comments
@evr3n thank you for opening this issue , I will review it. |
@evr3n I was able to test
Note: I have done another test without creating |
@chen-keinan thanks for your response. I did create the secret the same way, however I want to give the operator's service account the imagePullSecret, not the workload that will be scanned. Is there a way to achieve that? |
In a similar way:
|
I think we might be misunderstanding each other, so just to make sure let me summarize: |
Thank you for the clarification. The way trivy-operator works today , it find references to image pull secrets (direct references from pod spec or indirect via service account )
see reference to private registries |
@evr3n I stumbled across this thread, because I had the same problem... Your pullsecret might be of type trivy-operator/pkg/kube/secrets.go Line 63 in 6276bb1
|
I'm actually struggling with a similar issue. Except that the secrets in my cluster are |
Fixed , now supported with global secrets |
What steps did you take and what happened:
I am trying to scan images from a private GCR registry. I created a service account and secret and added the imagePullSecret to the CM.
No vulnerability reports are generated and the trivy-operator pod log returns the following:
What did you expect to happen:
Trivy-operator scanning the images and generating vulnerability reports.
Anything else you would like to add:
We have had the same error in the past when running Trivy CLI in a pipeline and now pull the image right before the Trivy command, so it is cached.
Related issues
#69, #264 and aquasecurity/starboard#1189
Environment:
trivy-operator version
): 0.1.5kubectl version
):The text was updated successfully, but these errors were encountered: