-
Notifications
You must be signed in to change notification settings - Fork 594
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
fix: adds ignore rules for kernel-headers indirect matches #1787
Conversation
Opening as a draft for initial feedback. I'll address any concerns in UX, testing, etc and then move it to ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @zhill - I took a look and like this approach of using the built in ignore rules as the hook for this option.
I'll take a look this afternoon at what unit tests should look like for this feature.
I also noted that the quality gate is now failing with this PR so will examine to see how I can help fix that for you as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks pretty good to me
Ack, yes I knew the quality gate would need work once i get 👍 on the approach. Happy to resolve that once we're good on the things like option naming and rule details. |
7846d96
to
c068ba7
Compare
I've added tests and I have a pr for the quality tests: anchore/vulnerability-match-labels#132 What's the process for getting the quality to pass? Do I wait for that to merge and then update the submodule to that commit in main? |
9e21c34
to
7d8e8b4
Compare
@zhill I've approved anchore/vulnerability-match-labels#132.
I'd recommend updating the submodule in this branch. It's also fine to update the submodule in |
Adds ignoring of kernel-headers indirect matches on kernel vulns since the kernel-headers package does not have the kernel code in it that kernel vulns are actually referring to. Adds a config value to control this ignore behavior that defaults to enabling the ignore rules. Fixes: 1762 * Adds ignore rule support for match types and upstream package names. * Adds default ignore rules for kernel-headers indirect matches on kernel for rpms. Signed-off-by: Zach Hill <zach@anchore.com>
7d8e8b4
to
ba44f20
Compare
Signed-off-by: Zach Hill <zach@anchore.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Adds ignoring of kernel-headers indirect matches on kernel vulns since the kernel-headers package does not have the kernel code in it that kernel vulns are actually referring to.
Adds a config value to control this ignore behavior that defaults to enabling the ignore rules.
Fixes: #1762