[feedback] CfEnv.ts reads a single fixed pair of Cloudflare credential names, so an…

Đang mở
#2,667 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 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cloud

Hướng nghiên cứu

Start by locating CfEnv.ts and tracing NEEDED_KEYS and the childEnv checks before deploy. Find where the secrets gate, observability check, and social-card check read Cloudflare credentials; the proposal requires them to use the same profile-resolved pair while keeping the current names as the default. Done means a project can select its credential variable names without breaking single-account installs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened

CfEnv.ts reads a single fixed pair of Cloudflare credential names, so an install with two Cloudflare accounts (personal and client) has to rename one account's credentials for the other to deploy. Proposal: a profile per project naming the variables to read.

Summary

CfEnv.ts reads one fixed pair of names, CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID (NEEDED_KEYS, and the childEnv checks before deploy). A principal with two Cloudflare accounts, a personal one and a client's, has to rename the credentials of one account so the other can deploy, and then re-point every reader of the renamed variable.

Proposal: a profile per project. cloudflare.config.ts, or a CFENV_PROFILE variable read at the start of the run, names the two variables to read for that project (for a client account, CLOUDFLARE_CLIENT_API_TOKEN and CLOUDFLARE_CLIENT_ACCOUNT_ID, say). Absent, the current names stay the default, so nothing changes for a single-account install. The secrets gate, the observability check and the social-card check read the same resolved pair.

Seen on 2026-11-07 while adding a second Cloudflare account to an install that already deployed one project with the first.

Details

  • Kind: feedback
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

Ngôn ngữ chính
TypeScript
Star
19.9k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 danielmiessler/LifeOS

Tất cả issue của danielmiessler/LifeOS

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.