k8s-deployment/scripts/sops_rotate.sh

5 lines
208 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
for file in $(find values -type f -depth 2 -name "secrets.*"); do sops updatekeys $file; done
for file in $(find values -type f -depth 2 -name "secrets.*"); do sops rotate -i $file; done