Fetching database through ECR seems to fail starting with release 0.66.0 #9430
Closed
eldondevat
started this conversation in
Bugs
Replies: 2 comments 2 replies
-
|
Probably related to #9429 which didn't exist when I started writing this up, and seems to be slightly different given that it is pulling a container to scan, and this is pulling the DB |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
duplicate of #9429 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Previous authentication strategy no longer works to download database images from ECR. 0.65.0 successfully downloads the database. Possibly related to #9322 ? If I perform a trivy registry login using
aws ecr get-login-passwordbeforehand 0.66.0 can auth, but that means I have to install the aws cli into the container.Desired Behavior
2025-09-03T19:19:17Z INFO [vulndb] Downloading artifact... repo=".dkr.ecr..amazonaws.com/github/aquasecurity/trivy-db:2"
27.49 MiB / 69.90 MiB [----------------------->_________] 39.33% ? p/s ?40.43 MiB / 69.90 MiB [----------------------------------->] 57.83% ? p/s ?65.55 MiB / 69.90 MiB [--------------------------------------------------------->] 93.77% ? p/s ?69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 70.61 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 70.61 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 70.61 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 66.06 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 66.06 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 66.06 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 61.80 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 61.80 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 61.80 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 57.81 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 57.81 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 57.81 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 54.08 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [---------------------------------------------->] 100.00% 54.08 MiB p/s ETA 0s69.90 MiB / 69.90 MiB [-------------------------------------------------] 100.00% 21.75 MiB p/s 3.4s2025-09-03T19:19:24Z INFO [vulndb] Artifact successfully downloaded repo=".dkr.ecr..amazonaws.com/github/aquasecurity/trivy-db:2"
Actual Behavior
2025-09-03T16:59:59Z FATAL Fatal error run error: init error: DB error: failed to download vulnerability DB: OCI artifact error: failed to download vulnerability DB: failed to download artifact from .dkr.ecr..amazonaws.com/github/aquasecurity/trivy-db:2: OCI repository error: 1 error occurred:
GET https://.dkr.ecr..amazonaws.com/v2/github/aquasecurity/trivy-db/manifests/2: unexpected status code 401 Unauthorized: Not Authorized
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
Linux on AWS
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions