Home Server deployed by doco-cd.
alias l='ls -lrah --color=auto'
alias d='docker'
alias n='nano'
alias dlogsa="docker logs home-server 2>&1 | jq ."
alias dlogs="docker logs --since 5m home-server 2>&1 | jq ."
- Install Brew if you haven't
- Install age via (we use HomeBrew because we need age version 1.3.1 or above, which is not yet available in the Ubuntu archive):
brew install age
- Install sops
- Follow encryption instructions by doco-cd, but add
-pqto thekeygencommand to generate keys that are Post-Quantum resistant. - On dev machines, copy the private age key to specific location in your home directory:
mkdir -p $HOME/.config/sops/age && cp sops_age_key.txt $HOME/.config/sops/age/keys.txt - Edit encrypted file by running
cd media-server sops edit .enc.env
Tip: if you want to rotate a key, or lost (access to) a private age key you likely want to add a new fingerprint/public age key and remove the old one. To do so, get onto a machine that still has a valid private age key, then remove the old fingerprint/public key from .sops.yml except the fingerprint of the machine you're currently using. Optionally, add any new fingerprints of age keys you want to start using. Then re-encrypt all files. After that, you can edit the files using sops edit and start rotating secrets.
TODO: split the tip above into 2 use cases (rotating keys after breach & adding a new keypair to a key group)