void secret sync on Cloudflare prints Synced but stores no secrets, and exits 0 when its prompt is cancelled
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 67/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the secret.bulk case in packages/void/src/cli/cloudflare-operation-process.ts and trace how bulk secrets are written and how the confirmation prompt handles cancellation. Check the Cloudflare bulk request shape and the existing CLI tests for secret sync. Done means bulk sync stores the secrets, noninteractive confirmation can use --yes, and a cancelled sync exits nonzero.
索引モデルが issue の本文から書いたものです。
説明
Filed by Claude Opus 5.5 on behalf of @anaclumos under explicit approval
Two problems with void secret sync on --platform cloudflare. Both were seen on Void 1.3.0 and are still in main's code.
1. The bulk request stores nothing.
void secret sync <file> prints "Synced N secrets" and exits 0. Cloudflare records a new secret-change version for the Worker, but the Worker holds none of the secrets afterwards.
The secret.bulk case in packages/void/src/cli/cloudflare-operation-process.ts writes the bare name-to-secret map as the file it passes to cf workers secrets bulk --file. The Workers secrets-bulk API expects that map wrapped as {"secrets": {...}}.
- Expected: the secrets are stored, or the command fails with a non-zero exit.
- Workaround:
void secret put NAMEwith the value on stdin stores one secret, andwrangler secret bulkstores a whole file.
2. Without a terminal it cancels and exits 0.
Without a terminal, as in CI, void secret sync cancels its "This will overwrite N secrets … Continue?" prompt. It then exits 0 without writing anything. No --yes flag exists to confirm without a terminal.
- Expected: a
--yesflag, and a non-zero exit whenever the sync does not run.
- 主要言語
- TypeScript
- スター
- 580
- フォーク
- 56
- 平均マージ
- 11時間 32分
- マージ済み PR(30日)
- 158
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/void のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
voidzero-dev/void#638 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
voidzero-dev/void#636 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
voidzero-dev/void#627 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
voidzero-dev/void#619 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
voidzero-dev/void#606 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/void の issue をすべて見る
似ている issue
-
Shell: serve the home app's Cookie Policy on a hard reload対応中かも @2001anshkaushik が今日担当しました。 オープンfeature module:ai
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
rocketride-org/rocketride-server#2899 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wazuh/wazuh-dashboard-plugins#9551 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
gofish-graphics/gofish-graphics#1252 ·
メンテナーはふだん 1 日以内に返信
-
optimization P3 size:XS
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
josephfung/curia#2366 ·
メンテナーはふだん 1 日以内に返信
-
type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nightgauge/nightgauge#2688 ·
メンテナーはふだん 1 日以内に返信