slsa-verifier
slsa-verifier copied to clipboard
Test for `--print-provenance` option
We don't have tests for these. For GCB, it's particularly important since multiple provenances may be contained in the gcloud provenance.
/cc @asraa
Good point. It seems like we probably do the right thing. We currently set the provenance printed statement to the v01IntotoStatement. This doesn't include the human readable summary in the exterior wrapping. It also shouldn't include the slsaPredicate
that's there for backwards compatibility, since that won't be included in the v01IntotoStatement.
That being said, I was taking a look at verification and it looks like the algorithm used is a signature over the entire b64 encoded payload
in the envelope, rather than the PAE of the contents.
We can test out that slsaPredicate was NOT included (but note, it IS signed over).
I think the signing algorithm/PAE difference is a spec incompatibiilty..
I think I misunderstood you: multiple provenances actually meant multiple in the lists of provenance. Got it! Ignore my first statements.
This is relevant https://github.com/slsa-framework/slsa-verifier/issues/382#issuecomment-1343081652