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

Abierto
#2,667 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cloud

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
19.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de danielmiessler/LifeOS

Todos los issues de danielmiessler/LifeOS

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.