Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

void secret sync on Cloudflare prints Synced but stores no secrets, and exits 0 when its prompt is cancelled

Đang mở
#635 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ó
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
Lĩnh vực
cli, cloud

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 NAME with the value on stdin stores one secret, and wrangler secret bulk stores 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 --yes flag, 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

  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 voidzero-dev/void

Tất cả issue của voidzero-dev/void

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.