# This example uses YAML anchors which allows reuse of multiple keys # without having to repeat yourself. # Also see https://github.com/Mic92/dotfiles/blob/master/nixos/.sops.yaml # for a more complex example. # use `ssh-keyscan | ssh-to-age` to get the age key for a remote machine # use `for file in $(grep -lr "sops:") secrets; do sops updatekeys -y $file; done` for updating keys: - &steveej 6F7069FE6B96E894E60EC45C6EEFA706CB17E89B - &steveej-t14 age17jxphuql70wjkd84azn62ltx9ky69hyvkac23lm8f2j92lznf9hseqq0vl - &steveej-x13s age1y9urllccdcemlv7g5z4peuzeh5ah0a8nu6cnkvym8v2vfhqjd5jql483c6 - &elias-e525 age1pmznn2tjpelpmxjxqef48rse5ujggf9kcr8x5vewuadqcw03aavqwy54zm - &justyna-p300 age1ye4fa0v37shz8q4e5uf9cp2avygcp9jtetmnj2sv9y9mqc7gjyksq2cjy8 - &sj-vps-htz0 age18dmqd7r7fanrfmdxsvwgv9psvhs3hw5ydpvw0na0dv3dlrg4rs3q2wpvgv - &sj-srv1 age18dmqd7r7fanrfmdxsvwgv9psvhs3hw5ydpvw0na0dv3dlrg4rs3q2wpvgv - &srv0-dmz0 age13cyvxrd28j68f97q2dwsn62q5dy8tdxtq86ql2dxv2ncwfrf63dsmkj7n3 - &router0-dmz0 age1qju6ms625tlgcjwc9p447seu2p8gu0cr63e5gv5y0wx9mvgmre9slxzzs0 - &router0-ifog age1dktk5glcuu34u9t6kp3g2vqyj7dy0elray38t8n75mwa6l0s0vdst2cy00 - &router0-hosthatch age1v458x2q70yt0a6m6cq5ehemphtrzfzyhmeg3r872vsyyf65asgwstmqqk4 - &hstk0 age10xwq7a4y256yhv02j0u80te0vt4krgfjc68r0uw07t96z7ggmpwqtv38a0 creation_rules: - path_regex: ^(.+/|)secrets/[^/]+$ key_groups: - pgp: - *steveej age: - *steveej-t14 - *steveej-x13s - *elias-e525 - *justyna-p300 - *srv0-dmz0 - *router0-dmz0 - *sj-vps-htz0 - *sj-srv1 - *hstk0 - *router0-ifog - *router0-hosthatch - path_regex: ^secrets/steveej-t14/.+$ key_groups: - pgp: - *steveej age: - *steveej-t14 - path_regex: ^secrets/desktop/.+$ key_groups: - pgp: - *steveej age: - *steveej-t14 - *steveej-x13s - path_regex: ^secrets/servers/.+$ key_groups: - pgp: - *steveej age: - *sj-vps-htz0 - *sj-srv1 - path_regex: ^nix/os/containers/.+_secrets.+$ key_groups: - pgp: - *steveej age: - *sj-vps-htz0 - *sj-srv1 - path_regex: ^secrets/holochain-infra/.+$ key_groups: - pgp: - *steveej age: - *srv0-dmz0 - path_regex: ^secrets/router0-dmz0/.+$ key_groups: - pgp: - *steveej age: - *router0-dmz0 - path_regex: ^secrets/router0-ifog/.+$ key_groups: - pgp: - *steveej age: - *router0-ifog - path_regex: ^secrets/router0-hosthatch/.+$ key_groups: - pgp: - *steveej age: - *router0-hosthatch - path_regex: ^secrets/sj-vps-htz0/.+$ key_groups: - pgp: - *steveej age: - *sj-vps-htz0 - path_regex: ^secrets/sj-srv1/.+$ key_groups: - pgp: - *steveej age: - *sj-srv1 - path_regex: ^secrets/hstk0/.+$ key_groups: - pgp: - *steveej age: - *hstk0 - path_regex: ^secrets/steveej-x13s/.+$ key_groups: - pgp: - *steveej age: - *steveej-x13s - path_regex: ^secrets/work-holo/.+$ key_groups: - pgp: - *steveej age: - *steveej-x13s