You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
verify-blob gives an unclear error for legacy cosign bundles #5274
On main, cosign verify-blob and cosign verify-blob-attestation fail on a legacy cosign bundle
(base64Signature, cert, rekorBundle) with only the protobuf parser's error:
Error: proto: (line 1:2): unknown field "base64Signature"
Dropping the format in v4 is expected (#4221). But users whose cosign upgrades through a package manager
won't know from this message what changed.
Proposal: when the file is a legacy cosign bundle, say so in front of the parser error:
Error: <file> is a legacy cosign bundle; cosign v4 verifies only Sigstore bundles (legacy bundles were last supported in cosign v3): proto: (line 1:2): unknown field "base64Signature"
Bundles that load are not affected. I have a small patch with tests and will open a PR.
AI disclosure: investigated and drafted with Claude Code (Claude Opus 5.5); I reviewed and tested the patch.
Activity
Explain legacy bundles in verify-blob errors