Description
What would you like to be added?
When ratify performs verification it does so by going over all attached artifacts and if one of them has an artifact type that supports verification it will trigger the matching verifier, if there is more than one artifact of a given type, then all of them will be verified.
Since verification by ratify involves pulling artifacts from the registry, it is a costly operation.
I would like to propose an optional mitigation, the OCI referrers API also provides annotation in the OCI index response it generates, ratify is aware of each image age and can use it to perform some age-based filtration before even pulling the images.
This especially comes in handy in vulnerability verification where the latest artifact is the only important one.
It may even be possible to define several behaviors:
- Verify all referrers (default for backward compatibility)
- Latest referrer (only verify the latest image)
- First successful referrer (the first one to pass validation, by image age)
Anything else you would like to add?
No response
Are you willing to submit PRs to contribute to this feature?
- Yes, I am willing to implement it.
Activity