2023-06-07 07:02:34 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#!nix-shell -i bash -p coreutils-full -p findutils -p sops
|
2022-06-20 22:57:13 +00:00
|
|
|
# after modifying .sops.yaml, run this to re-encode all secrets to the new keys
|
|
|
|
# pass the base directory (under which *everything* is a secret) as argument
|
2022-06-20 23:03:30 +00:00
|
|
|
for i in $(find "$1" -print)
|
2022-06-20 22:57:13 +00:00
|
|
|
do
|
|
|
|
yes | sops updatekeys "$i"
|
|
|
|
done
|