Environment Variable
Variable de entorno
Una variable de entorno es un ajuste con nombre que está fuera del código de la app. Permite que cada entorno use valores diferentes.
Otro ejemplo
Una imagen de contenedor lee diferentes hosts de bases de datos y URL base en vista previa y producción sin cambiar el código.
Partes principales
- 01Identity or input
- 02Policy or transformation
- 03Stored result and audit evidence
Úsalo cuando
Úsalo para configuraciones en tiempo de implementación y referencias de secretos aprobadas provistas por el tiempo de ejecución.
No lo uses cuando
Nunca reveles secretos en paquetes de cliente, registros, capturas de pantalla o archivos .env comprometidos. Usa nombres claros.
Nombre usado en código
process.env / runtime secret injection Antes de lanzarlo
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Variable de entorno (Environment Variable). User context: Una imagen de contenedor lee diferentes hosts de bases de datos y URL base en vista previa y producción sin cambiar el código. Technical concept or control: Variable de entorno (Environment Variable). Why it fits: Úsalo para configuraciones en tiempo de implementación y referencias de secretos aprobadas provistas por el tiempo de ejecución. Do not use it when: Nunca reveles secretos en paquetes de cliente, registros, capturas de pantalla o archivos .env comprometidos. Usa nombres claros. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Ningún estándar oficial único controla todo el término. Su significado puede cambiar según equipos, plataformas o marcos. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Revisa esta petición
Review how Variable de entorno (Environment Variable) is used now. Definition: Una variable de entorno es un ajuste con nombre que está fuera del código de la app. Permite que cada entorno use valores diferentes. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.