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 --yes flag in cosign import-key-pair to skip the overwrite confirmation. #3382

Closed
zhaoyonghe opened this issue Nov 21, 2023 · 0 comments · Fixed by #3383
Closed

Add --yes flag in cosign import-key-pair to skip the overwrite confirmation. #3382

zhaoyonghe opened this issue Nov 21, 2023 · 0 comments · Fixed by #3383
Labels
enhancement New feature or request

Comments

@zhaoyonghe
Copy link
Contributor

zhaoyonghe commented Nov 21, 2023

Description

Users may call cosign import-key-pair and then cosign sign multiple times to sign multiple images in CI/CD pipelines. And cannot confirm overwrite:

WARNING: File imported.key already exists. Overwrite?
22:27:00 Are you sure you would like to continue? [y/N] 2023/11/20 22:27:00 unable to import key pair: user declined the prompt
22:27:00 ERROR: exit status 1

It is better to add a --yes flag to skip the overwrite confirmation.

Version

GitVersion:    v2.2.1-24-gda53b08c
GitCommit:     da53b08cb543117f817950fb915a57e3c421d3af
GitTreeState:  clean
BuildDate:     2023-11-27T17:23:19Z
GoVersion:     go1.21.1
Compiler:      gc
Platform:      darwin/arm64
@zhaoyonghe zhaoyonghe added the enhancement New feature or request label Nov 21, 2023
@zhaoyonghe zhaoyonghe changed the title Add --yes flag cosign import-key-pair to skip the overwrite confirmation. Add --yes flag in cosign import-key-pair to skip the overwrite confirmation. Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant