sigstore-python
sigstore-python copied to clipboard
CLI: Verification should support complex policies via a policy file input
This issue has a few blockers, including coordination with the broader Sigstore community on a machine-readable policy format.
Key components:
- The
sigstore verifysubcommands should take a--policy <FILE>or similar option, which would read in the policy file to use during verification. - ...or there would be a separate
sigstore verify policysubcommand, sincesigstore verify identityandsigstore verify githubalready imply basic policies.
CC @di for visibility.
Would it be worthwhile creating a verification policy in protobuf-specs? We can start relatively barebones, something like:
- List of tuple of (identity, issuer)
- Issuer could have aliases for common issuers
- Syntax for CI identities, pulling from https://github.com/sigstore/cosign/issues/2691
- No regular expressions would be my preference
cc @jku