Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

fix!: sigstore handle multiple rekor keys#1396

Merged
flavio merged 3 commits intokubewarden:mainfrom
flavio:fix-sigstore-handle-multiple-rekor-keys
Oct 17, 2025
Merged

fix!: sigstore handle multiple rekor keys#1396
flavio merged 3 commits intokubewarden:mainfrom
flavio:fix-sigstore-handle-multiple-rekor-keys

Conversation

@flavio
Copy link
Copy Markdown
Member

@flavio flavio commented Oct 17, 2025

The contents of the Sigstore's TUF repository changed, causing verification to not work properly.

This commits fixes verification, both for the .wasm files containing our policies and for the policies that make use of our verification capabilities (like the verify-image-signatures policy).

However, now the Sigstore's TUF repository no longer ships with individual certificate/public keys. Issue #1245 was already tracking that.

Moreover, the latest version of sigstore-rs requires to know Rekor's KEY IDs in addition to the actual keys, which makes all the individual CLI flags (--rekor-public-key-path, ``--fulcio-cert-path`) useless.

Because of that, this commit removes these flags.

We will add support for bring your own PKI in a future PR (see #1245 (comment) for more details).

…tory

This commit updates to the latest sigstore-rs crate, which allows us to
handle some changes done inside of Sigstore's TUF repository.

This commit is part of a series of commits required to address the
issue.

Signed-off-by: Flavio Castelli <[email protected]>
The contents of the Sigstore's TUF repository changed, causing
verification to not work properly.

This commits fixes verification, both for the `.wasm` files containing
our policies and for the policies that make use of our verification
capabilities (like the `verify-image-signatures` policy).

However, now the Sigstore's TUF repository no longer ships with
individual certificate/public keys. Issue kubewarden#1245
was already tracking that.

Moreover, the latest version of sigstore-rs requires to know Rekor's KEY IDs in addition
to the actual keys, which makes all the individual CLI flags
(`--rekor-public-key-path`, ``--fulcio-cert-path`) useless.

Because of that, this commit removes these flags.

We will add support for bring your own PKI in a future PR (see
kubewarden#1245 (comment)
for more details).

Signed-off-by: Flavio Castelli <[email protected]>
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.74%. Comparing base (bfed7a5) to head (4d2de0a).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1396      +/-   ##
==========================================
+ Coverage   82.45%   86.74%   +4.28%     
==========================================
  Files          34       34              
  Lines        4577     4495      -82     
==========================================
+ Hits         3774     3899     +125     
+ Misses        803      596     -207     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Keep track of the removal of the rekor and fulcio related flags

Signed-off-by: Flavio Castelli <[email protected]>
@viccuad viccuad changed the title fix sigstore handle multiple rekor keys fix!: sigstore handle multiple rekor keys Oct 17, 2025
Copy link
Copy Markdown
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@flavio flavio merged commit 297ae84 into kubewarden:main Oct 17, 2025
19 checks passed
@github-project-automation github-project-automation bot moved this from Pending review to Done in Kubewarden Admission Controller Oct 17, 2025
@flavio flavio deleted the fix-sigstore-handle-multiple-rekor-keys branch October 17, 2025 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Development

Successfully merging this pull request may close these issues.

2 participants