Skip to content
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

feat(misconf): Ignore duplicate checks if found #6929

Closed
simar7 opened this issue Jun 13, 2024 · 7 comments · Fixed by #7317
Closed

feat(misconf): Ignore duplicate checks if found #6929

simar7 opened this issue Jun 13, 2024 · 7 comments · Fixed by #7317
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. scan/misconfiguration Issues relating to misconfiguration scanning
Milestone

Comments

@simar7
Copy link
Member

simar7 commented Jun 13, 2024

Today we don't ignore duplicate checks if found (e.g. A check could exist as a Go and Rego implementation during the transition to move all checks to Rego). In such a case the check will be counted twice, leading to erroneous results.

@simar7 simar7 added kind/feature Categorizes issue or PR as related to a new feature. scan/misconfiguration Issues relating to misconfiguration scanning labels Jun 13, 2024
@nikpivkin nikpivkin self-assigned this Jun 17, 2024
@nikpivkin
Copy link
Contributor

@simar7 I think this issue has already been solved with the addition of the deprecated field. #6626

@simar7
Copy link
Member Author

simar7 commented Aug 6, 2024

@simar7 I think this issue has already been solved with the addition of the deprecated field. #6626

If a check isn't deprecated yet but has a duplicate of itself, what's the behavior in such a scenario? Do we not double count?

@nikpivkin
Copy link
Contributor

Oh, I missed that. Yes, the result will be duplicated. Am I correct that the results of Rego checks should be prioritised?

@nikpivkin
Copy link
Contributor

@simar7 Since we have already added functionality to skip deprecated checks and during the check migration process we mark Go checks as deprecated, so users will not face the problem of duplicate checks that Trivy supplies. It turns out only those checks supplied by the user himself can be duplicated. Does it make sense to exclude them or can we just warn the user?

@simar7
Copy link
Member Author

simar7 commented Aug 8, 2024

so users will not face the problem of duplicate checks that Trivy supplies.

But if the user doesn't update to a newer version of trivy but yet downloads a new version of the bundle, they will still get duplicated checks right? This issue should add support going forwards so that any duplication of checks doesn't result in duplication of findings.

@nikpivkin
Copy link
Contributor

In this case, if the user does not update Trivy, they will not get the functionality to ignore duplicate checks.

@simar7
Copy link
Member Author

simar7 commented Aug 9, 2024

Yes but we can handle such a case going forwards from when this change is introduced. Regardless as you mentioned, older versions of Trivy will still face the same.

@simar7 simar7 added this to the v0.55.0 milestone Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. scan/misconfiguration Issues relating to misconfiguration scanning
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants