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

[Bug]: Using --force doesn't force overwrite output file of step crypto key format #1255

Open
merlinz01 opened this issue Aug 14, 2024 · 0 comments
Assignees
Labels
bug needs triage Waiting for discussion / prioritization by team

Comments

@merlinz01
Copy link

Steps to Reproduce

$ step crypto keypair pub.pem priv.pem --no-password --insecure
Your public key has been saved in pub.pem.
Your private key has been saved in priv.pem.
$ step crypto key format priv.pem --pkcs8 --pem --force --out priv.pem --no-password --insecure 
✔ Would you like to overwrite priv.pem [y/n]: y
Your key has been saved in priv.pem.

Your Environment

  • OS - Linux Mint 21,3
  • step CLI Version - Smallstep CLI/0.26.1 (linux/amd64) Release Date: 2024-04-23T00:08:02Z

Expected Behavior

No prompt when saving the key because --force is used.

Actual Behavior

The step crypto key format command still prompts to confirm overwrite even when --force is used.

Additional Context

This makes a small inconvenience for automation.

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@merlinz01 merlinz01 added bug needs triage Waiting for discussion / prioritization by team labels Aug 14, 2024
@hslatman hslatman self-assigned this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

No branches or pull requests

2 participants