cloudflare / cloudflare/developer-platform

Unexpected behaviour setting env vars can lead to production outtages

Abierto
#19 1 comentario 0 reacciones 0 asignados Ver en GitHub
product:deploy-config
Lenguaje dominante
Sin datos de lenguaje
Estrellas
1
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Please provide a link to a minimal reproduction

https://discord.com/channels/595317990191398933/1468179236803182736

### Describe the Bug

**The Issue:**
When adding Environment Variables or Secrets via the Cloudflare Workers dashboard, the system automatically creates a new deployment based on the **latest entry in the Version History**, rather than the currently **Active Deployment.**
**Steps to Reproduce:**
1. Deploy a stable version to production (e.g., "Production v1").
2. Upload a "Preview" deployment (e.g., "Preview v2") that is not set to active (simulating a Pull Request or staging build).
3. Go to Settings > Variables and Secrets and add a new variable.
4. The system deploys the change.
**The Consequence:**
The new deployment created by adding the variable will contain the code from the Preview/Staging build (Preview v2) instead of the Production build. This causes untested or unreleased code to accidentally overwrite the live production environment. The user expects the variable to be applied to the currently active production code.

### Please provide any relevant error logs

https://github.com/user-attachments/assets/a00f6998-4ccb-498b-a9a6-b88c9291bb3b

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la reproducción vinculada de Discord y repite el flujo del dashboard: activa un deployment de producción estable, sube un deployment de preview no activo y, a continuación, añade una variable en Settings > Variables and Secrets. Se considera terminado cuando el deployment resultante contiene el código de producción activo en lugar del código de preview más reciente.

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

Evaluación

Área
cloud, devops
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.