Skip to content

Conversation

@haydentherapper
Copy link
Contributor

Clients that don't want to use a transparency log should provide a signing config without tlog service instances rather than use this flag. This will also throw an error when a client uses this flag when a signing config will be used, since Cosign/sigstore-go ignores this flag and we don't want a user to unexpectedly upload to the public instance.

Summary

Release Note

Documentation

@haydentherapper haydentherapper requested a review from a team as a code owner October 10, 2025 23:21
@haydentherapper
Copy link
Contributor Author

Hold to merge until #4449 is in, then I'll rebase.

@codecov
Copy link

codecov bot commented Oct 10, 2025

Codecov Report

❌ Patch coverage is 0% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.53%. Comparing base (2ef6022) to head (936b111).
⚠️ Report is 556 commits behind head on main.

Files with missing lines Patch % Lines
cmd/cosign/cli/signcommon/common.go 0.00% 39 Missing ⚠️
cmd/cosign/cli/attest.go 0.00% 4 Missing ⚠️
cmd/cosign/cli/attest_blob.go 0.00% 4 Missing ⚠️
cmd/cosign/cli/sign.go 0.00% 4 Missing ⚠️
cmd/cosign/cli/signblob.go 0.00% 4 Missing ⚠️
cmd/cosign/cli/options/attest.go 0.00% 1 Missing ⚠️
cmd/cosign/cli/options/attest_blob.go 0.00% 1 Missing ⚠️
cmd/cosign/cli/options/sign.go 0.00% 1 Missing ⚠️
cmd/cosign/cli/options/signblob.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4458      +/-   ##
==========================================
- Coverage   40.10%   35.53%   -4.58%     
==========================================
  Files         155      220      +65     
  Lines       10044    15091    +5047     
==========================================
+ Hits         4028     5362    +1334     
- Misses       5530     9041    +3511     
- Partials      486      688     +202     

☔ 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.

Clients that don't want to use a transparency log should provide a
signing config without tlog service instances rather than use this flag.
This will also throw an error when a client uses this flag when a
signing config will be used, since Cosign/sigstore-go ignores this flag
and we don't want a user to unexpectedly upload to the public instance.

Signed-off-by: Hayden <[email protected]>
The one difference between sign/attest and sign/attest-blob is whether a
bundle output flag is present, so the error message has been adjusted.

Signed-off-by: Hayden <[email protected]>
@haydentherapper
Copy link
Contributor Author

Rebased and refactored common logic into a shared method.

@haydentherapper haydentherapper marked this pull request as draft October 22, 2025 12:44
@haydentherapper
Copy link
Contributor Author

Going to update to override the signing config with a printed warning. I don't love doing this, but there's clearly a lot of usage still of tlog-upload and we didn't deprecate this in v2.6

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