fix(ci): add second cosign signature for compatibility#1314
fix(ci): add second cosign signature for compatibility#1314flavio merged 1 commit intokubewarden:mainfrom
Conversation
| # Sign blob with cosign v3 signature format for compatibility | ||
| cosign sign-blob --yes --new-bundle-format=true --use-signing-config=true \ | ||
| --bundle policy-server-attestation-${{ matrix.arch }}-provenance.intoto.jsonl.bundle.sigstore \ | ||
| policy-server-attestation-${{ matrix.arch }}-provenance.intoto.jsonl |
There was a problem hiding this comment.
I think:
- We are saving the cosign-v2 signature into a
policy-server-attestation-${{ matrix.arch }}-provenance.intoto.jsonl. We maybe should save it to a-provenance.cosign-v2.intoto.jsonlor similar. - We are overwriting that file with the cosign-v3 signature.
- If we indeed have 2 signatures, we should add them as artifacts at the end of release.yml
There was a problem hiding this comment.
Good point. I've updated all the PR adding this double signature removing the cosign v2 signatures for the blobs signed (attestation files and binaries)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1314 +/- ##
=======================================
Coverage 40.76% 40.76%
=======================================
Files 16 16
Lines 1207 1207
=======================================
Hits 492 492
Misses 715 715
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
In order to allow old cosign version and other verification tools to verify the signature it's necessary to add a second signature using the old format. The default format before cosign v3 changed the default signature bundle. Signed-off-by: José Guilherme Vanz <[email protected]>
flavio
left a comment
There was a problem hiding this comment.
I like this PR. I like the strategy of signing with v2 and v3 format inside of the OCI registry, but sign only with v3 the blobs that are going to be made available as assets of the GitHub Release
Description
In order to allow old cosign version and other verification tools to verify the signature it's necessary to add a second signature using the old format. The default format before cosign v3 changed the default signature bundle.