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
-f or --no-input option does not work with piv-tool set-pin #2296
Comments
thanks, i will try to reproduce and if confirms will see how to fix it |
Problem is cosign/cmd/cosign/cli/pivcli/commands.go Line 301 in cb4898b
The solution would be to use ConfirmPrompt instead. This would be a fast fix. It has an added benefit of getting rid of a dependency on While we're in there, we should replace any Long term fixNail down semanticsIn past discussions (see #844 #1909 #2039) it's come up that there are two distinct use cases for a
There are also two kinds of types of prompt:
The following is a proposed matrix of how they'd interact:
We should codify this in some documentation. Enforce those semanticsBan |
This library: - Is testable. - Is consistent across the CLI. Related to (does not fix) sigstore#2296 and sigstore#2204. Signed-off-by: Zachary Newman <zjn@chainguard.dev>
This library: - Is testable. - Is consistent across the CLI. Related to (does not fix) sigstore#2296 and sigstore#2204. Signed-off-by: Zachary Newman <zjn@chainguard.dev>
This library: - Is testable. - Is consistent across the CLI. Related to (does not fix) sigstore#2296 and sigstore#2204. Signed-off-by: Zachary Newman <zjn@chainguard.dev>
This library: - Is testable. - Is consistent across the CLI. Related to (does not fix) sigstore#2296 and sigstore#2204. Signed-off-by: Zachary Newman <zjn@chainguard.dev>
This library: - Is testable. - Is consistent across the CLI. Related to (does not fix) sigstore#2296 and sigstore#2204. Signed-off-by: Zachary Newman <zjn@chainguard.dev>
Description
When setting new pin on the PIV device the command
cosign piv-tool set-pin --no-input --new-pin <new pin> --old-pin <old pin>
will prompt for confirmation even though --no-input is specfied? Setting new pin. This will overwrite the previous pin.? [y/N] █
Version
GitVersion: devel
GitCommit: unknown
GitTreeState: unknown
BuildDate: unknown
GoVersion: go1.19.1
Compiler: gc
Platform: linux/amd64
The text was updated successfully, but these errors were encountered: