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
dagsterproject, 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
devandprdenvironments.- You can specify the same or different values between both, depending on the isolation level you want or can achieve.
- For example,
PGURLis different betweendevandprd.
- Add your secret to
shared.envasMY_SECRET = env.require("MY_SECRET"). - Import the secret with
from shared.env import MY_SECRETwherever you need to use it.