Environment-specific Configs
Base + environment override layout and release checklist.
The goal is one binary, per-environment overrides—trackable by diff without code branches.
Recommended directory layout
config/
base/
gateway-config.xml
routes.xml
filters.xml
env/
dev/overrides.xml
stg/overrides.xml
prod/overrides.xml
Required separation
- Endpoint URL, timeout, retry
- Secrets, tokens, certificates (vault integration)
- Log level and sampling rate
- Feature flag
Release checklist
| Check | Criteria |
|---|---|
| Secrets in repo | 0 |
| Environment diff approval | 2+ reviewers |
| Rollback artifact | Keep prior revision |