-
Notifications
You must be signed in to change notification settings - Fork 142
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
Scanning failure for non-amd64 Red Hat images created before June 2020 #435
Comments
I'm getting this same error, pointing me at this Issue, despite the fact that the image DOES contain
|
@DmitriyLewen Can you please take a look? |
Hello @atgreen Unfortunately, I don't have access to this image. Can you send me the UPD. ➜ curl -X 'GET' \
'https://catalog.redhat.com/api/containers/v1/images/id/66db9ee0a82efda2c54a9ec6' \
-H 'accept: application/json' | jq .content_sets
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 47900 100 47900 0 0 66602 0 --:--:-- --:--:-- --:--:-- 66527
[
"rhel-8-for-aarch64-baseos-rpms",
"rhel-8-for-aarch64-appstream-rpms"
] |
It looks like several files contain incorrect
@knqyf263 you have more experience in this matter.
|
My understanding is that there should only be one file per layer. However, the image as a whole may contain multiple files. Therefore, it is necessary to look up the appropriate buildinfo for each package. |
This is the content set we have used in our config.
|
@sayan-biswas Thanks for sharing. We see some content sets, like
|
I'm also seeing this error with the following content in content_manifests
Based on the above comments, it looks like these are correct (and I only have a single file in content_manifests) |
Hmm... this is very strange... |
I'm afraid not, but we've upgraded from v0.55.1 to v0.55.5 of trivy and that appears to have resolved the issue. |
Trivy doesn't have |
Haha, I've not fully woken up yet, we've reverted to 0.55.0 (which does work) rather than 0.55.1 (which doesn't) |
Is this possible that manifest files for other layers have been deleted? |
I don't believe so. Our build infrastructure templates our docker files but I couldn't find anything in the infrastructure to suggest it was deleting manifest files from other layers. I'll see if I can get out the templated docker file but that might not happen until next week I'm afraid. |
ok, i'll wait for the info. |
We started to see failures which directed to this issue after upgrading from trivy 0.55.1 to 0.56.1. We couldn't understand why we were seeing this and were at a bit of a loss. Rightly or wrongly, we've always scanned our images in our CI in parallel. Out of curiosity more than anything, I reverted the parallel scan to run in serial and this error went away. I haven't had chance to look in to the "why" as yet but thought id share this incase it helps in anyway without muddying the waters. |
Description:
We've identified an issue in our scanning process for Red Hat container images.
Problem
Scanning fails for Red Hat container images that meet both of these criteria:
Root cause:
These older images lack
/root/buildinfo/content_manifests
, requiring NVR-to-CPE conversion.Our current NVR-to-CPE mapping only includes amd64 architectures.
Impact
Incomplete vulnerability scanning for affected images
The text was updated successfully, but these errors were encountered: