Currently, we are able to verify container images with sigstore signatures using public key/Fulcio/Rekor, as described here. However, there are additional verifications supported by cosign, such as verifying signatures using non-Fulcio roots, as demonstrated in this pull request.
An example of the cosign command for verifying signatures using non-Fulcio roots is:
SIGSTORE_ROOT_FILE="certificate_bundle.pem" cosign verify \
--certificate-identity-regexp "identity-.*" \
--certificate-oidc-issuer-regexp ".*" \
--timestamp-certificate-chain tsa_ca_chain.pem \
"${image}"
Is it possible to add support for this functionality? Moreover, could we take a step further and match fields in /etc/containers/policy.json with the cosign verify parameters to enable the execution of all forms of cosign verify?
/cc @mtrmac
Thank you for your attention to this matter.