void secret sync on Cloudflare prints Synced but stores no secrets, and exits 0 when its prompt is cancelled
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 580
- Fork
- 56
- Merge trung bình
- 12 giờ 10 phút
- Pull request đã merge (30 ngày)
- 163
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/void
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
voidzero-dev/void#645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
void deploy cannot deploy a Worker with no URL after its first deploy, and --atomic refuses itĐang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 48/100
voidzero-dev/void#644 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
React: `action()` and `router.visit()` never resolve when awaited in a transitionCó thể đã có người làm @cpojer đã nhận hôm nay. Đang mở
voidzero-dev/void#643 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Static output always writes `foo.html`, so trailing-slash URLs 404 on hosts like GitHub PagesĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
voidzero-dev/void#638 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
voidzero-dev/void#636 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/void
Issue tương tự
-
area:cli bug P4
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug from-studio
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
esengine/DeepSeek-Reasonix#14868 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
linxiv-dev/linXiv#384 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope:core type:security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-redirects updateĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
mailgun/mailgun.js#544 ·