Managing secrets in TextLayer Core applications
dev
, staging
, prod
)doppler run
command:.env
files to .gitignore
SERVICE_CREDENTIAL_TYPE
)doppler run
instead of .env
files
doppler run -- flask run
doppler configure
dev-john
)keeper_secrets.py
file in your project:
infisical_secrets.py
file in your project:
vault_secrets.py
file in your project:
.env
files for environment variables.
.env
file in the root of your TextLayer Core project:
.env
file using the python-dotenv
package:
.env
files are convenient for local development, they have security limitations:
.env
files to version control
.env
to your .gitignore
file.env.example
with placeholder values as a template.env
files
chmod 600 .env
.env
files are best for local development only