# Dual-mode: Infisical OR environment variable fallback
postgres_password: >-
{{
_infisical_global.POSTGRES_PASSWORD | default(None)
if infisical_enabled | default(false) | bool and _infisical_global is defined
else lookup('env', 'POSTGRES_PASSWORD') | default('changeme', true)
}}This provides:
- Infisical-first: When configured, secrets come from Infisical
- Graceful fallback: Environment variables work for local development
- Safe defaults: Development never breaks due to missing secrets