Interview Prep/CI/CD/Secrets, Security and Pipeline Performance

Trivy scan fails the pipeline: `FATAL ... failed to download vulnerability DB ... TOOMANYREQUESTS`.

IntermediateTroubleshootingSecrets, Security and Pipeline Performance
Answer

Likely causes → Rate limits fetching the vulnerability DB from the public registry.

Diagnose → Read the Trivy logs.

Fix → Mirror the DB (--db-repository to an internal registry) or cache ~/.cache/trivy.

Prevent → Cache the DB and fall back to the Java DB mirror when needed.

All CI/CD questions

More on Secrets, Security and Pipeline Performance