infra/scripts/rekey.sh

13 lines
209 B
Bash
Raw Normal View History

2024-10-13 15:16:39 -05:00
#!/usr/bin/env bash
SCRIPT_DIR="$(dirname "$0")"
ROOT_DIR="$(realpath "$SCRIPT_DIR/..")"
pushd "$ROOT_DIR" > /dev/null
rekey_dir() {
find $1 | xargs -i sops updatekeys -y {}
}
rekey_dir "secrets/*.yaml"