Skip to content

fix(#8): sign with cosign --new-bundle-format#14

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/8-new-bundle-format
Jul 20, 2026
Merged

fix(#8): sign with cosign --new-bundle-format#14
scttfrdmn merged 1 commit into
mainfrom
fix/8-new-bundle-format

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

cosign sign-blob --bundle (without --new-bundle-format) writes the legacy bundle format ({base64Signature,cert,rekorBundle}), which sigstore-go — and therefore spawn's verifier — cannot parse. --new-bundle-format emits the Sigstore protobuf bundle (application/vnd.dev.sigstore.bundle.v0.3+json) that spawn verifies.

How it was caught

Re-cutting rstudio-server-v1.0.1 through the real (now-merged) signing workflow produced a legacy bundle; spawn v0.86.0 rejected it with proto: unknown field "base64Signature". Re-signing the same manifest locally with --new-bundle-formatspawn plugin inspect rstudio-server@v1.0.1 shows signature-verified ✓ against the production sigstore trust root (Fulcio + Rekor + SCT + timestamp).

The virtual-Sigstore unit tests use protobuf entities, so they never exercised this legacy path — hence it slipped past. Companion spawn PR adds a clear error if a legacy bundle ever reaches the verifier: spore-host/spawn#421.

Refs #8.

cosign sign-blob --bundle writes the LEGACY bundle format
({base64Signature,cert,rekorBundle}), which sigstore-go — and thus spawn — can't
parse. --new-bundle-format emits the Sigstore protobuf bundle
(application/vnd.dev.sigstore.bundle.v0.3+json) that spawn verifies.

Caught by re-cutting rstudio-server-v1.0.1 through the real workflow: spawn
v0.86.0 rejected the signature ('unknown field base64Signature'). Re-signed
locally with --new-bundle-format → spawn verified it (signature-verified) against
the production sigstore trust root.
@scttfrdmn
scttfrdmn merged commit 2dda4ab into main Jul 20, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the fix/8-new-bundle-format branch July 20, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant