eraser icon indicating copy to clipboard operation
eraser copied to clipboard

Contain CVE vulnerabilities of deleted images

Open CocoWang-wql opened this issue 2 years ago • 7 comments

We have customer feedback that to contain not only deleted image list but also the vulnerabilities of the deleted images in logs.

CocoWang-wql avatar Oct 02 '23 05:10 CocoWang-wql

Hello Team, It would be great to see this feature enabled.

  • Currently eraser uses Trivy to scan vulnerabilities on running / stale images on aks cluster. However, we want to leverage this feature to surface vulnerability details in the logs and use log analytics / container insights to develop custom query alerts to detect image vulnerabilities on AKS clusters.

  • This feature will be useful for us who are using Private AKS clusters in air gapped environment.

Thank you

asifkd012020 avatar Oct 03 '23 05:10 asifkd012020

@asifkd012020 do you mind elaborating more on why are you looking for vuln details for deleted images?

or are you asking for #356 (vuln details on running images)?

sozercan avatar Oct 03 '23 16:10 sozercan

Hello @sozercan, yes, we are looking for vuln details on running images for security and compliance requirements. We use Jfrog Artifactory to build images and its hard to get vul details(as in ACR).

Thank you.

asifkd012020 avatar Oct 03 '23 21:10 asifkd012020

@asifkd012020 thanks! that is out of scope for eraser at this time, but we will consider it for future. we would recommend using https://aquasecurity.github.io/trivy-operator for this feature

sozercan avatar Oct 03 '23 21:10 sozercan

@sozercan - We have airgapped environment and using Trivy operator is difficult option as mentioned in https://github.com/aquasecurity/trivy-operator/issues/1342 I would love this feature enabled through Eraser and customers won't have to build their own image and maintain it.

asifkd012020 avatar Oct 03 '23 23:10 asifkd012020

@sozercan @asifkd012020 could you please elaborate how the integration with Eraser will look like ?

chen-keinan avatar Oct 09 '23 06:10 chen-keinan

@chen-keinan if this is re: #356, please comment in that issue

if your question is about this issue (cve details for deleted images), it is passing in CVE ID and adding to this line https://github.com/eraser-dev/eraser/blob/144e329ea046ab663d0dff37c04ba4ce888e117a/pkg/remover/helpers.go#L85

sozercan avatar Oct 09 '23 17:10 sozercan