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

Aperta
#2,667 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cloud

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
19.9k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.