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

Đang mở
#1,255 0 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@hslatman đang làm issue này rồi.

Từ ngày 20/8/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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).

Ngôn ngữ chính
Go
Star
4.3k
Fork
320
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của smallstep/cli

Tất cả issue của smallstep/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.