Support stdin and hidden-prompt input for Worker secrets

オープン
#150 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli, security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
993
フォーク
65
平均マージ
21時間 47分
マージ済み PR(30日)
209

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudflare/cf のほかの issue

cloudflare/cf の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。