We are using AWS Inspector to scan vulnerabilities on our AWS ECR repositories. When there is a new image on a certain repository, we would like to suppress findings from past / superseded images, keep active only findings from the latest image for each repository, so we can see only the issues that are actually not fixed yet.
I can't just filter out by age, because it might happen that we don't generate a new image for some time, for certain repositories.
I'm trying to create suppression rules on AWS Inspector, but I can't find the proper filter to achieve the desired effect. If I try to suppress all images that don't have the latest
Image Tag, it suppresses all images, with latest
tag included.
How can I suppress findings from old ECR images?