Part of https://github.com/sigstore/sigstore-python/issues/1111. This changes the sigstore verify CLI command so that when verifying a bundle containing a DSSE envelope, if verification succeeds the inner in-toto statement is printed to the user.
This is done because sigstore-python only verifies the subjects of the DSSE envelope match the artifacts being verified, it does not do any verification on the predicate of the statement. This should be done by the user, which is why we print the statement after verification succeeds, so that the user has easy access to it.
Release Note
CLI: The sigstore verify command now outputs the inner in-toto statement
when verifying DSSE envelopes. If verification is successful, the output
will be "OK: $FILENAME" followed by the inner in-toto statement. This allows
the user to see the statement's predicate, which sigstore-python does not
verify and should be verified by the user.
Summary
Part of https://github.com/sigstore/sigstore-python/issues/1111. This changes the
sigstore verify
CLI command so that when verifying a bundle containing a DSSE envelope, if verification succeeds the inner in-toto statement is printed to the user.This is done because
sigstore-python
only verifies the subjects of the DSSE envelope match the artifacts being verified, it does not do any verification on the predicate of the statement. This should be done by the user, which is why we print the statement after verification succeeds, so that the user has easy access to it.Release Note
sigstore verify
command now outputs the inner in-toto statement when verifying DSSE envelopes. If verification is successful, the output will be "OK: $FILENAME" followed by the inner in-toto statement. This allows the user to see the statement's predicate, whichsigstore-python
does not verify and should be verified by the user.cc @woodruffw