Skip to content

verify-blob gives an unclear error for legacy cosign bundles #5274

Backlog

Description

@joeyohie

Description

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

  1. added
    enhancement
    on Dec 3, 2026
  2. added a commit that references this issue on Dec 3, 2026
    15e3193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions