Skip to content

Begin to replace deprecated sigstore/sigstore implemented TUF client implementation with sigstore/sigstore-go - #2037

Open
malancas wants to merge 11 commits into
sigstore:mainfrom
malancas:migrate-to-sigstore-go
Open

malancas wants to merge 11 commits into
sigstore:mainfrom
malancas:migrate-to-sigstore-go

Conversation

@malancas

@malancas malancas commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This replaces sigstore/sigstore with sigstore/sigstore-go when building a TUF root and client. The deprecated github.com/sigstore/sigstore/pkg/fulcioroots package will be replaced with sigstore-go in a follow up pull request since that work is more involved.

This pull request will be followed by at least two others for replacing the deprecated sigstore/sigstore Fulcio and Rekor functionality.

Release Note

Documentation

Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 10.00000% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.92%. Comparing base (45f4f1e) to head (bbc188c).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
pkg/tuf/repo.go 13.33% 26 Missing ⚠️
cmd/webhook/main.go 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2037      +/-   ##
==========================================
+ Coverage   34.81%   34.92%   +0.10%     
==========================================
  Files         127      127              
  Lines        6870     6895      +25     
==========================================
+ Hits         2392     2408      +16     
- Misses       4478     4487       +9     

☔ View full report in Codecov by Harness.
📢 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.

Signed-off-by: Meredith Lancaster <malancas@users.noreply.github.com>
@cpanato

cpanato commented Nov 9, 2026

Copy link
Copy Markdown
Member

@malancas can you rebase?

@cpanato

cpanato commented Nov 9, 2026

Copy link
Copy Markdown
Member

FYI: the latest dependabot group (#2048) bumps github.com/sigstore/sigstore to v1.11.1, which deprecates pkg/tuf and pkg/fulcioroots. Lint fails there until those imports go away, so #2048 is waiting on this PR.

malancas and others added 3 commits November 9, 2026 08:52
Signed-off-by: Meredith Lancaster <malancas@users.noreply.github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
@malancas malancas changed the title replace sigstore/sigstore dependency with sigstore/sigstore-go replace TUF root usage on sigstore/sigstore dependency with sigstore/sigstore-go Nov 9, 2026
@malancas malancas changed the title replace TUF root usage on sigstore/sigstore dependency with sigstore/sigstore-go Replace TUF root usage reliance on sigstore/sigstore with sigstore/sigstore-go Nov 9, 2026
Comment thread pkg/webhook/validator.go
"github.com/sigstore/sigstore-go/pkg/root"
"github.com/sigstore/sigstore/pkg/cryptoutils"
"github.com/sigstore/sigstore/pkg/fulcioroots"
"github.com/sigstore/sigstore/pkg/fulcioroots" //nolint:staticcheck

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Replacing github.com/sigstore/sigstore/pkg/fulcioroots with sigstore-go functions is more involved. I plan to replace this in a follow up PR and am adding this linting ignore rule temporarily.

"github.com/sigstore/sigstore/pkg/fulcioroots"
"github.com/sigstore/sigstore/pkg/tuf"
"github.com/sigstore/sigstore/pkg/fulcioroots" //nolint:staticcheck
"github.com/sigstore/sigstore/pkg/tuf" //nolint:staticcheck

@malancas malancas Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I also plan to remove github.com/sigstore/sigstore/pkg/tuf in a follow up.

…y target fetching

Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
@malancas malancas changed the title Replace TUF root usage reliance on sigstore/sigstore with sigstore/sigstore-go Begin to replace deprecated sigstore/sigstore implemented TUF client implementation with sigstore/sigstore-go Nov 9, 2026
Comment thread cmd/webhook/main.go
logging.FromContext(ctx).Infof("Initializing TUF root from %s => %s", *tufRoot, *tufMirror)
if err := tuf.Initialize(ctx, *tufMirror, tufRootBytes); err != nil {
// Legacy Fulcio and Rekor loaders still use their own TUF singleton.
if err := legacytuf.Initialize(ctx, *tufMirror, tufRootBytes); err != nil {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because the deprecated sigstore/sigstore Fulcio and Rekor code will be removed in a follow up, we need to temporarily preserve the legacy client.

@malancas
malancas marked this pull request as ready for review November 9, 2026 23:15
@malancas
malancas requested a review from a team as a code owner November 9, 2026 23: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.

2 participants