SOPS¶
SOPS is used to encrypt and decrypt secrets in my homelab.
Typically, my secrets are kept in .env
files that are read as environmental variables and then used my configs.
Other files are encrypted that have secrets, such as yaml config or sqlite db files.
age is my encryption of choice.
Installation¶
Config¶
Keys¶
~/.config/sops/age/keys.txt
(
[ -d ~/.config/sops/age ] || mkdir -p ~/.config/sops/age
scp [email protected]/home/nicholas/.config/sops/age/keys.txt ~/.config/sops/age/
)
.sops.yaml