Secrets & environments
Defining secrets
We use Doppler to synchronize secrets across our dev and production environments.
To add a secret follow this procedure:
- Log in to Doppler using your brimstone.com account.
- Go into the
dagster
project, currently used for defining secrets all projects inmonolith
.- Note: we will separate secrets by project at some point in the future.
- Add your secret to the
dev
andprd
environments.- You can specify the same or different values between both, depending on the isolation level you want or can achieve.
- For example,
PGURL
is different betweendev
andprd
.
- Add your secret to
shared.env
asMY_SECRET = env.require("MY_SECRET")
. - Import the secret with
from shared.env import MY_SECRET
wherever you need to use it.