Skip to content
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

trivy-db repository #45

Merged
merged 2 commits into from
Sep 30, 2024
Merged

trivy-db repository #45

merged 2 commits into from
Sep 30, 2024

Conversation

andrewmackett
Copy link
Member

@andrewmackett andrewmackett commented Sep 26, 2024

Jira: PE-860

Trivy scans the source code and any container image for vulnerabilities. However, when using the default repository for the trivy database, we see rate limiting issues:

Fatal error	init error: DB error: failed to download vulnerability DB: database download error: OCI repository error: 1 error occurred:
	* GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 669.3µs, allowed: 44000/minute

This has been widely reported on the Trivy git repositories and the Trivy maintainers are making changes in an attempt to improve the situation. However it's unclear how long these changes will take and it appears the changes will only be available in the latest versions. We often pin to an older version of trivy because of another issue (of our own making).

We've have setup a Google Artifact Registry "remote repository" which effectively caches images from the default GitHub Container Registry. This PR updates the settings trivy uses to get the database from this cache, and avoiding the rate limiting from ghcr.

This PR was generated using turbolift.

@andrewmackett andrewmackett merged commit c49bdb1 into main Sep 30, 2024
3 checks passed
@andrewmackett andrewmackett deleted the trivy-db branch September 30, 2024 15:44
@gr4vy-code
Copy link
Contributor

🚀 PR was released in v1.6.1 🚀

@gr4vy-code gr4vy-code added the released This issue/pull request has been released. label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants