-
Notifications
You must be signed in to change notification settings - Fork 12
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
ROX-26604: Add layer lineage to RHEL v2 data model #1720
base: master
Are you sure you want to change the base?
Conversation
c90672c
to
44eb861
Compare
Current CI failures will be fixed by #1737 - once merged will rebase this PR. |
Reviewers - please share your thoughts if we should add an env variable to switch this capability off (in case unforeseen issues) |
Yeah I'm cool with adding an env var |
7ecfa77
to
b72f3ec
Compare
This reverts commit b72f3ec.
/test e2e-tests |
New CI failure - also saw same failure in latest commit in master indicating its not related to this change. |
@dcaravel: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Fixes an edge case that could cause discrepancies in scan versions, packages, etc. when images have a common layer but with different parent layers.
Testing
Unit and e2e tests added. Test image details at stackrox/stackrox#13558
Also manually tested. The test images below have the same top/bottom layers but different middle layers, also they have tags that represent the version of the openjdk packages within the image for comparison.
Before fix:
Wrong version returned for 2nd scan:
After fix:
Correct versions returned for both scans
Also using a custom go app that dumps + compares scans from two different ACS instances. I compared the scan results from a default OCP installation with one cluster that had the fix and another cluster without. Initially the testing was yielding different vulnerability detections, that seemed to change as the vuln loads progressed (as well as after they were fully loaded).
To rule out this being related to this fix, I created a new image based off
scanner:4.6.0-rc2
but added the scanner binary built in this PR (so that the embedded vulns stayed the same):After initialization complete and latest vulns loaded, re-ran all scans in both ACS instances and the result were identical except for the specific image tested above ^^ - these differences were expected because that is what this PR is fixing.