.env Files¶
.env
files are used to store variables and secrets. There are used whenver possible.
Note
Because they can hold secrets, they are ignored by git.
Template¶
Since the file is ignored by git, the template file may be copied, if it exists.
Secrets¶
If secrets are kept in the .env
file, the file is encrypted using SOPS and stored as .env.enc
.
Warning
Storing encrypted secrets in a public repo is risky and is not recommended!