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

Filter by image registry or regex #2002

Closed
ybasket opened this issue Apr 11, 2024 · 2 comments · Fixed by #2080
Closed

Filter by image registry or regex #2002

ybasket opened this issue Apr 11, 2024 · 2 comments · Fixed by #2080
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@ybasket
Copy link

ybasket commented Apr 11, 2024

Background
We're currently evaluating trivy-operator to secure our clusters regarding vulnerabilities in 3rd party container images, for example nginx. As we already regularly scan images we build ourselves, it would be great if we could exclude our internal AWS ECR registry from image scanning. Namespace filtering doesn't help as they contain a mix of images from different sources. Resource labelling would work, but is rather tedious to set up and ensure only the correct resources are labelled.

Feature
Allow filtering image before scanning by registry or more broadly, by regex on the image URL, so trivy-operator would skip (or only include) containers running such images while considering all others.

@ybasket ybasket added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 11, 2024
@chen-keinan
Copy link
Contributor

@ybasket as mention in discussion, feel free to pick it up if you have time.

@ybasket
Copy link
Author

ybasket commented Apr 15, 2024

@ybasket as mention in discussion, feel free to pick it up if you have time.

I might do, but as it's neither decided we'll use trivy-operator nor am I a well-versed Go programmer, please don't rely on it. If anybody else is interested in implementing this, please go ahead :)

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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants