Grafeas filtering /Kritis integration

61 views
Skip to first unread message

Petko Petkov

unread,
Aug 20, 2020, 5:34:06 PM8/20/20
to Grafeas Users
Hello All, 

I'm recent Grafeas user and I see so much potential in this project. 

I'm trying to implement CI/CD for container scanning images, storing the CVEs in Grafeas and making binary decision using Kritis whenever the image is safe to deploy based on the policy. I'm planing on having one project, then storing all CVEs as notes and then different image versions as occurrences. 

Is there a way to search or filter in Grafeas for a given image name and get all CVEs ?

How is Kritis integrating with Grafeas? Could I deploy it standalone in kubernetes cluster? 

Any help would be much appreciated. Thanks in advance.    

Regards,
Petko

Balázs Gyurák

unread,
Aug 24, 2020, 1:22:30 PM8/24/20
to Grafeas Users
Hi,

I am not familiar with the details of the Vulnerability Kind, but I have done a lot of work with Grafeas so I will attempt to answer. Note that I will talk about the "v1beta1" API version.

Is there a way to search or filter in Grafeas for a given image name and get all CVEs ?

Yes, you can specify a filter in your "ListOccurrencesRequest" request object. Have a look at the docs for the filtering.

How is Kritis integrating with Grafeas? Could I deploy it standalone in kubernetes cluster? 

Yes, you can. As for the how, it depends on the Kind. I've mainly worked with attestations. For those, Kritis queries Grafeas to fetch the list of attestations for a given image. In your case, I believe what you need are ImageSecurityPolicies. Have a look at Kritis' code for exact details on how the integration happens.

Thanks
Balazs

Petko Petkov

unread,
Aug 26, 2020, 7:45:24 PM8/26/20
to Grafeas Users
Thanks Balázs Gyurák, it should be enough to get me started. 
Reply all
Reply to author
Forward
0 new messages