Skip to content

Conversation

@kommendorkapten
Copy link
Member

Summary

Per the latest TUF updates in Sigstore Public Good instance, the key type is changing for the TUF keys, to keep cosign v1 continue to work I've updated to the latest go-tuf version.

Release Note

  • Updated go-tuf version to v0.7.0
  • Updated sigstore/sigstore to v1.8.0

Documentation

N/A

cpanato and others added 2 commits January 5, 2023 10:23
* Merge pull request from GHSA-vfp6-jrw2-99g9

* Add limit to number of sigs and attestations

Signed-off-by: AdamKorcz <[email protected]>

* Update pkg/cosign/fetch.go

Co-authored-by: Cody Soyland <[email protected]>
Signed-off-by: AdamKorcz <[email protected]>

* Update error message

Signed-off-by: Hayden B <[email protected]>

* fix compilation error

Signed-off-by: Hayden Blauzvern <[email protected]>

* Add e2e tests

Signed-off-by: Hayden Blauzvern <[email protected]>

---------

Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: Hayden B <[email protected]>
Signed-off-by: Hayden Blauzvern <[email protected]>
Co-authored-by: Cody Soyland <[email protected]>
Co-authored-by: Hayden B <[email protected]>

* fix missing import

Signed-off-by: cpanato <[email protected]>

* bump golang to 1.19.13

Signed-off-by: cpanato <[email protected]>

* update tests

Signed-off-by: cpanato <[email protected]>

* refactor validate release

Signed-off-by: cpanato <[email protected]>

* pin sigstore/scaffolding/actions/setup to v0.4.13

Signed-off-by: cpanato <[email protected]>

* update ko-local

Signed-off-by: cpanato <[email protected]>

---------

Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: Hayden B <[email protected]>
Signed-off-by: Hayden Blauzvern <[email protected]>
Signed-off-by: cpanato <[email protected]>
Co-authored-by: AdamKorcz <[email protected]>
Co-authored-by: Cody Soyland <[email protected]>
Co-authored-by: Hayden B <[email protected]>
@codecov
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 1.57480% with 125 lines in your changes are missing coverage. Please review.

Project coverage is 29.75%. Comparing base (43bde0e) to head (fbe758d).

❗ Current head fbe758d differs from pull request most recent head be9bf89. Consider uploading reports for the commit be9bf89 to get more accurate results

Files Patch % Lines
cmd/cosign/cli/tuf_policy.go 0.00% 117 Missing ⚠️
cmd/cosign/cli/policy_init.go 0.00% 7 Missing ⚠️
cmd/cosign/cli/verify/verify_blob_attestation.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           1.0-fork    #3597      +/-   ##
============================================
- Coverage     30.16%   29.75%   -0.42%     
============================================
  Files           136      137       +1     
  Lines          8436     8553     +117     
============================================
  Hits           2545     2545              
- Misses         5561     5678     +117     
  Partials        330      330              

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


test:
go test $(shell go list ./... | grep -v third_party/)
GODEBUG=x509sha1=1 go test $(shell go list ./... | grep -v third_party/)
Copy link
Member Author

@kommendorkapten kommendorkapten Mar 13, 2024

Choose a reason for hiding this comment

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

This is needed as some test certs are using SHA-1.

@jku
Copy link
Member

jku commented Mar 13, 2024

I'm not super familiar with cosign (like what v1 is) but does this mean upgrading cosign to use the go-tuf rewrite?

EDIT: I suppose 0.7 is the release before the rewrite?

@kommendorkapten
Copy link
Member Author

EDIT: I suppose 0.7 is the release before the rewrite?

Correct! This is the last version that is API compatible.

@haydentherapper
Copy link
Contributor

LGTM, just need to rebase off release-1.13 and merge into that branch instead, which should hopefully resolve test failures.

kommendorkapten and others added 7 commits March 14, 2024 10:26
Signed-off-by: Fredrik Skogman <[email protected]>
swap out deprecated lib

Signed-off-by: Bob Callaway <[email protected]>
swap out deprecated lib

Signed-off-by: Bob Callaway <[email protected]>
fix gofmt issue

Signed-off-by: Bob Callaway <[email protected]>
go mod tidy

Signed-off-by: Bob Callaway <[email protected]>
free up space ahead of running goreleaser

Signed-off-by: Bob Callaway <[email protected]>
@kommendorkapten
Copy link
Member Author

Rebased on release-1.13 now.

@kommendorkapten kommendorkapten deleted the v1-go-tuf-update branch March 22, 2024 14:30
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.

5 participants