Skip to content

Unnecessary Rescanning #1

@jzelinskie

Description

@jzelinskie

Hey there. I'm a Clair maintainer and just found this project. It's a really awesome idea to integrate Clair closer with Kubernetes. There were a couple things I noticed from a quick glance that I think you should be aware of.

Kate will also rescan all the images every couple of hours just to let you know if the CVE situation has changed.

Notifications are built into Clair and Clair is designed to not require rescans, unless the Clair has been upgraded to support detecting new features. As per the Clair README:

Vulnerability data is continuously imported from a known set of sources and correlated with the indexed contents of container images in order to produce lists of vulnerabilities that threaten a container. When vulnerability data changes upstream, the previous state and new state of the vulnerability along with the images they affect can be sent via webhook to a configured endpoint.

I also recommend using the Clair API rather than shelling out to the analyze-local-images binary. This binary is for local testing, was written extremely quickly, and is likely to be removed at some point.

PS: I really like the name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions