Skip to content

Instantly share code, notes, and snippets.

@ianatha
Last active May 17, 2025 10:05
Show Gist options
  • Save ianatha/66739082e7ae8266018839d2bf297ff8 to your computer and use it in GitHub Desktop.
Save ianatha/66739082e7ae8266018839d2bf297ff8 to your computer and use it in GitHub Desktop.
rencrypt SOPS
#!/bin/bash
for file in `grep -RIlZ '^sops:' .`; do
echo $file
sops --decrypt -i "$file" &&
sops --encrypt -i "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment