| name | config-boundary |
| description | Keep environment variables and deploy-time settings inside a typed config boundary |
| metadata | {"type":"Reference","origin":"harness-engineering/ch5","helpful":0,"harmful":0,"status":"active"} |
Config Boundary
Rules
- Read
process.env only in the config layer.
- Validate required settings at startup.
- Convert booleans and numbers before they leave config.
- Do not expose secrets to client bundles.
- Keep environment-specific branching inside config or provider setup.
Anti-patterns
const endpoint = process.env.BILLING_API_URL;
Checklist