Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`cf workers secrets bulk` silently no-ops on the plain body shape; `secrets update` accepts invalid names

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

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

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

評価

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

調査の方向性

Start by reproducing the documented cf workers secrets bulk and secrets update commands, then trace the workers secrets command, help, and schema paths. Compare plain and wrapped bodies, .env input, and invalid names; done means the behavior is explicit, the body shape is documented in help and schema, and invalid names are rejected locally.

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

説明

upstream

cf version: 1.0.0-beta.5, macOS

1. cf workers secrets bulk silently does nothing with the plain (RFC 7396 merge-patch) body.

cf workers secrets bulk --worker W --body '{"API_KEY":{"type":"secret_text","text":"v"}}'

This returns 200 and exits 0, and the response lists the bindings, but the secret's value doesn't change (checked for 20 s). Only the wrapped shape {"secrets":{"API_KEY":{...}}} applies it.

  • --file with the plain shape: the same silent no-op.
  • --file with a .env file: [10026] Could not parse request body.
  • --help doesn't show the body shape, and cf schema workers secrets bulk shows requestBodyFields: [].

2. cf workers secrets update accepts invalid names. cf workers secrets update "bad-name!" --worker W --type secret_text --text v creates the secret (exit 0), although the help says the name must be "A JavaScript variable name". It can only be removed with delete "bad-name!" -f.

Expected: reject a body that won't apply, or accept the plain shape; document the body in --help and the schema; validate secret names locally.

Related, but a different problem: #96 (secrets update replaces the whole set).

Found while evaluating cf for a dev workflow: https://github.com/joeblew999/cf-cli-test (FINDINGS.md, findings/).

主要言語
TypeScript
スター
916
フォーク
53
平均マージ
19時間 13分
マージ済み PR(30日)
185

環境構築

はじめの一歩

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

cloudflare/cf のほかの issue

cloudflare/cf の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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