-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ghcr rate limit for Trivy - overriding DB repositories #21163
Comments
https://github.com/goharbor/harbor/pull/21015/files - this has been tagged to exclude from release notes for some reason, but hopefully it made it to v2.12.0 as this mitigation is much needed. |
The change is only available on trivy adapter v0.32.0: Let me know if it works. |
@reasonerjt thanks. While Harbor v2.12.0 is out it seems the helm chart was not yet updated for this release. The last release of the chart was back in August. A new chart version would need to be released first before I can upgrade. Meanwhile I've also attempted to change just the Trivy version through |
What issues did you see? I don't maintain the helm chart but this PR seems relevant: At this moment, I don't think I can provide a date for the helm chart release. |
@reasonerjt Interestingly enough, on another attempt with as far as I can tell the same parameters, I've gotten past the problem. Chart values for Trivy used: ...
trivy:
extraEnvVars:
- name: SCANNER_TRIVY_DB_REPOSITORY
value: public.ecr.aws/aquasecurity/trivy-db
- name: SCANNER_TRIVY_JAVA_DB_REPOSITORY
value: public.ecr.aws/aquasecurity/trivy-java-db
image:
tag: v2.12.0
... The compatibility error is no longer there. Unfortunately I cannot replicate it anymore so I cannot tell you what the exact error message was. |
The tag should not mention the @marevers This may also be the source of your errors. |
@benji78 I don't think that is correct - I tried that but it doesn't work. The Harbor helm chart does not deploy |
You are correct, since |
Since a few weeks we are also running into the rate limit for ghcr.io when the Trivy scanners are trying to download the vulnerability DB. A suggested solution on the Trivy side is to override the DB image repositories to ECR which should help with the rate limiting.
I have added the following environment variables in the chart:
The environment variables are correctly applied to the container, but it is still trying to download the DB from ghcr.io resulting in the rate limit / TOOMANYREQUESTS error.
Are these environment variables actually supported by the trivy-adapter-photon container? We are running the chart version 1.15.1 with
trivy-adapter-photon:v2.11.1
as per the default values.The text was updated successfully, but these errors were encountered: