cosign
cosign copied to clipboard
add generic webhook impl for verifying attestation integrity in addition to CUE or Rego policies
Description In the meantime, cosign has two different ways of verifying the integrity of attestations, CUE, or Rego policies. In this issue, I'm proposing to add a new way of verifying them by calling some external service which makes a decision whether an attestation is valid. IMHO, it adds extra flexibility to a system for people who might not want to write CUE or Rego policies.
WDYT @Dentrax @bobcallaway @dlorenc?
IMHO, it adds extra flexibility to a system for people who might not want to write CUE or Rego policies.
Is there a specific system or use case in mind? Webhooks as extensibility always feels like a giant smell to me
@developer-guy @dlorenc We've thought (@vaikas and myself) about using YAML definitions such as the one defined for the ClusterImagePolicy. Therefore users could use cosign verify -f cip.yaml <image>
to verify if an image satisfies the policy defined via a yaml file.