Support stdin and hidden-prompt input for Worker secrets

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli, security

Hướng nghiên cứu

Start at the cf workers secrets update command implementation and inspect related output-redaction work in issue #103. Define the stdin, hidden-prompt, bulk JSON, EOF, empty-value, dry-run, and error-output behaviors before locating the command tests; done means secret values are accepted without command arguments and are absent from normal and diagnostic output.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Request

Please support reading Worker secret values from stdin and through a hidden interactive prompt, with secret values redacted from normal and dry-run output.

Current behavior

In cf 1.0.0-beta.9, cf workers secrets update --help offers --text, --key-base64, and --body, but no documented stdin or hidden-prompt input. Passing a real secret as a command argument can expose it through process inspection, shell history, or agent command transcripts.

Suggested interface

For example, a --text-stdin option or a hidden prompt when the value is omitted, plus stdin JSON input for bulk secret updates. Input should not be echoed or included in error/debug/dry-run output. EOF or empty input should fail clearly unless an empty value is explicitly requested.

This would let agents and automation read values from an existing credential store and pipe them directly into cf without placing the value in arguments or writing a temporary plaintext file.

Related: #103 covers output redaction. This request adds the secure input side; it does not request broader permissions or a change to authentication. No real credentials are included in this report.

Ngôn ngữ chính
TypeScript
Star
993
Fork
65
Merge trung bình
18 giờ 28 phút
Pull request đã merge (30 ngày)
207

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 cloudflare/cf

Tất cả issue của cloudflare/cf

Issue tương tự

Thêm issue về TypeScript

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.