-
Notifications
You must be signed in to change notification settings - Fork 547
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
Conversation
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 <[email protected]>
Codecov Report
@@ 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
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Signed-off-by: Kenny Leung <[email protected]>
Signed-off-by: Kenny Leung <[email protected]>
Signed-off-by: Kenny Leung <[email protected]>
cmd/cosign/cli/options/attest.go
Outdated
@@ -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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 <[email protected]>
Signed-off-by: Kenny Leung <[email protected]>
Signed-off-by: Kenny Leung <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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 [email protected]
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 logDocumentation
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.