Prism uses Doppler as the source of truth for runtime secrets.
- Project:
prism - Local config:
dev - Release config:
production
.env.example remains a key contract reference only and is not used as runtime input by Make targets.
- Install Doppler CLI: https://docs.doppler.com/docs/install-cli
- From repo root, run:
make doppler-login
make setup-dev- Run the app:
make runRelease workflows use Doppler Service Tokens.
- Required GitHub secret:
DOPPLER_TOKEN_PRODUCTION
Workflows load secrets from prism/production.
When adding or changing secrets:
- Add/update key in Doppler (
prism/devandprism/productionas needed). - Reflect key contract in:
/.env.example/lib/env/env.dart(if app code reads it)
- Run guards:
make secrets-guard
make env-guard- Create a new Doppler Service Token for
prism/production. - Update
DOPPLER_TOKEN_PRODUCTIONin GitHub Secrets. - Trigger a release workflow and verify successful secret fetch.
- Revoke the old token.
doppler: command not found- Install CLI and retry.
no DOPPLER_TOKEN and not logged in- Run
make doppler-login.
- Run
cannot access prism/dev- Confirm project/config names and team access.
missing key in Doppler config- Add missing key to the selected config (
devorproduction).
- Add missing key to the selected config (