An update on rate limiting issue (TOOMANYREQUESTS) #8009
itaysk
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, Trivy users have been experiencing delays and errors when using Trivy. This page explains the situation and mitigation steps.
What is happening?
When you install Trivy, the installed artifact contains the scanner engine but is lacking relevant security information needed to make security detections and recommendations. These external assets (sometimes referred to as "databases") are hosted in GitHub Container Registry and maintained by Trivy automatically as needed, so normally you shouldn't notice or worry about them.
GitHub offers a very generous free hosting for open source packages in GHCR, but it’s not without limits. Recently, the aggregate load that Trivy users generated on GHCR supposedly exceeded the maximum rate limit, which is currently 44000 requests per minute per namespace (that includes all images under Aqua’s organization). In such surge registry pulls will be throttled, and Trivy will be unable to proceed and report an error (
TOOMANYREQUESTS
).Mitigation steps
We have been working hard over the past weeks to come up with solutions and workarounds to this problem, while remaining under the constraints of public free infrastructure. Some of the actions were implemented in Trivy and its ecosystem, while other solutions are recommended for users to implement.
Trivy team
Following are the steps that Trivy have taken to try minimizing the impact of this situation:
public.ecr.aws/aquasecurity/trivy-db
and to Docker Hub public registry:
aquasec/trivy-db
. Read more in Trivy's databases documentation.
Trivy users
Following are the steps that users could take to try minimizing the impact of this situation:
actions/cache
to achieve similar effect.Setting expectations
We strive to make Trivy accessible and available to all. Trivy is open source and relies on public free infrastructure so it's reasonable to expect it will not scale inifinitely. We hope that the improvements that we have recently made will improve your experience and allow you to continue enjoying Trivy. If you are using Trivy at work and your business relies on it, consider an enterprise grade solution like Aqua Security which guerentees availability and reliability.
Beta Was this translation helpful? Give feedback.
All reactions