Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag to allow skipping upload to transparency log #2089

Merged
merged 7 commits into from
Jul 25, 2022

Conversation

k4leung4
Copy link
Contributor

Summary

add flag to allow skipping upload to transparency log

we use cosign extensively with a private registry, and would like to
streamline the signing process to bypass the prompt to skip uploading to
a the transparency log with a private registry.

Signed-off-by: Kenny Leung kleung@chainguard.dev

Release Note

add flag to allow skipping upload to transparency log

usage cosign sign --key cosign.key --tlog_upload=false <IMAGE> to skip uploading to transparency log

Documentation

Yes, users can explicit decline upload to transparency log by passing the flag --tlog_upload=false flag. the --force flag takes priority if both are specified.

we use cosign extensively with a private registry, and would like to
streamline the signing process to bypass the prompt to skip uploading to
a the transparency log with a private registry.

Signed-off-by: Kenny Leung <kleung@chainguard.dev>
@codecov-commenter
Copy link

codecov-commenter commented Jul 22, 2022

Codecov Report

Merging #2089 (2c51c93) into main (00b1c2c) will decrease coverage by 0.04%.
The diff coverage is 4.76%.

@@            Coverage Diff             @@
##             main    #2089      +/-   ##
==========================================
- Coverage   26.33%   26.29%   -0.05%     
==========================================
  Files         129      129              
  Lines        7564     7577      +13     
==========================================
  Hits         1992     1992              
- Misses       5317     5330      +13     
  Partials      255      255              
Impacted Files Coverage Δ
cmd/cosign/cli/attest.go 0.00% <0.00%> (ø)
cmd/cosign/cli/options/attest.go 0.00% <0.00%> (ø)
cmd/cosign/cli/options/sign.go 0.00% <0.00%> (ø)
cmd/cosign/cli/sign.go 0.00% <0.00%> (ø)
cmd/cosign/cli/sign/sign.go 14.57% <12.50%> (-0.13%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us.

Signed-off-by: Kenny Leung <kleung@chainguard.dev>
@k4leung4 k4leung4 marked this pull request as draft July 22, 2022 03:30
Signed-off-by: Kenny Leung <kleung@chainguard.dev>
Signed-off-by: Kenny Leung <kleung@chainguard.dev>
@k4leung4 k4leung4 marked this pull request as ready for review July 22, 2022 05:01
@@ -75,4 +76,7 @@ func (o *AttestOptions) AddFlags(cmd *cobra.Command) {

cmd.Flags().BoolVarP(&o.SkipConfirmation, "yes", "y", false,
"skip confirmation prompts for non-destructive operations")

cmd.Flags().BoolVar(&o.TlogUpload, "tlog_upload", true,
Copy link
Member

Choose a reason for hiding this comment

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

i think it should match the other flags with composed name

for example the --no-upload then should be --tlog-upload

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the comment.
renamed to --no-tlog-upload, as the --upload flag refers to uploading signatures and not tlog.

Copy link
Member

Choose a reason for hiding this comment

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

thank you!

Signed-off-by: Kenny Leung <kleung@chainguard.dev>
Signed-off-by: Kenny Leung <kleung@chainguard.dev>
Signed-off-by: Kenny Leung <kleung@chainguard.dev>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

lgtm

@dlorenc dlorenc merged commit 74c01fe into sigstore:main Jul 25, 2022
@github-actions github-actions bot added this to the v1.11.0 milestone Jul 25, 2022
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.

None yet

4 participants