1
Fork 0
satellite/scripts/sops-rekey.sh

14 lines
309 B
Bash
Raw Permalink Normal View History

2024-08-27 13:54:32 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -p sops -i bash
# https://askubuntu.com/questions/1010707/how-to-enable-the-double-star-globstar-operator
# Enable the ** operator
shopt -s globstar
for file in ./**/secrets.yaml; do
echo "🔑 Rekeying $file"
sops updatekeys --yes $file
done
echo "🚀 All done!"