Skip to content

Check release signatures with cosign v2 as well - #142

Merged
Gorka Gonzalo (d0ubl3g) merged 1 commit into
devfrom
fix/cosign-v2
Oct 12, 2026
Merged

Gorka Gonzalo (d0ubl3g) merged 1 commit into
devfrom
fix/cosign-v2

Conversation

@d0ubl3g

Copy link
Copy Markdown
Contributor

The release's signatures are Sigstore bundles in the format cosign v3 reads by default. cosign v2 reads them from 2.4 on only with --new-bundle-format. So install.sh with cosign v2 refused a genuine release ("the Sigstore signature does not verify: do not use this file"), and the documented cosign verify-blob commands failed with v2.

  • install.sh reads cosign version. It adds --new-bundle-format for v2.4 and newer, and for anything older it stops with "install cosign v3 (or v2.4 or newer)". With v3 nothing changes.
  • README (install script) and docs/verifying-releases.md say which cosign versions work, and what to add with v2.
  • CI (install-script): after the existing install with cosign v3.1.3, it installs the latest release with cosign v2.4.1, and checks that v2.2.4 is refused with the version message and nothing is installed.
  • CHANGELOG: a Fixed entry in Unreleased.

Tested locally in clean containers against the published v0.4.0: the script installs with v3.1.3 and with v2.4.1, and stops with v2.2.4.

Refs #141

The release's signatures are Sigstore bundles in the format cosign v3
reads by default. cosign v2 reads them from 2.4 on only with
--new-bundle-format, so install.sh with cosign v2 refused a genuine
release as not verifying.

install.sh now reads the cosign version: it adds --new-bundle-format for
v2.4 and newer, and stops with the version it needs for anything older.
The README and docs/verifying-releases.md say which versions work and
what to add with v2. CI installs the latest release with cosign v2.4 too,
and checks that v2.2 is refused with that message.

Refs #141

Signed-off-by: d0ubl3g <48954024+d0ubl3g@users.noreply.github.com>
@d0ubl3g
Gorka Gonzalo (d0ubl3g) merged commit 43c1dba into dev Oct 12, 2026
13 checks passed
@d0ubl3g
Gorka Gonzalo (d0ubl3g) deleted the fix/cosign-v2 branch October 12, 2026 10:15
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