sigstore / sigstore-python

A Sigstore client written in Python
https://pypi.org/p/sigstore
Other
233 stars 49 forks source link

Add support for verifying digests to CLI verify commands #1125

Closed facutuesca closed 2 months ago

facutuesca commented 2 months ago

Summary

This PR changes the sigstore verify CLI command so that it accepts digests as inputs (in addition to files). Concretely:

# Before
sigstore verify identity ..... path/to/artifact.zip  # can only verify an artifact

# After
sigstore verify identity ..... path/to/artifact.zip  # can verify an artifact
sigstore verify identity ... --bundle b.sigstore.json sha256:aaabbbb.....  # can also verify an artifact's digest

This is useful in scenarios where the user doesn't want/need to download the artifact, but has access to its digest.

Related to https://github.com/sigstore/sigstore-conformance/issues/157

Release Note

Documentation

Example added to the README

cc @woodruffw

woodruffw commented 2 months ago

/gcbrun

di commented 2 months ago

/gcbrun

jku commented 2 months ago

/gcbrun

woodruffw commented 2 months ago

/gcbrun