#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash -p coreutils-full -p findutils -p sops
# 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 $(find "$1" -print)
do
	yes | sops updatekeys "$i"
done
