new script to update all sops secrets in a directory

also, rename secrets scripts to be grouped
This commit is contained in:
colin 2022-06-20 15:57:13 -07:00
parent c0dad51c6a
commit 4d0509af5d
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# 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
for i in $1/**/*
do
yes | sops updatekeys "$i"
done