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

Offen
#1,255 0 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@hslatman arbeitet bereits daran.

Seit 20.8.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug needs triage
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).

Vorherrschende Sprache
Go
Sterne
4.3k
Forks
320
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus smallstep/cli

Alle Issues in smallstep/cli

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.