Skip to content

Commit

Permalink
fix: use sops filestatus for discovering non-encrypted sops files
Browse files Browse the repository at this point in the history
Fixes: #1539
  • Loading branch information
onedr0p authored Sep 27, 2024
1 parent 81ce495 commit 9fcabba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .taskfiles/Sops/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tasks:
file: "{{.ITEM}}"
vars:
file:
sh: find "{{.KUBERNETES_DIR}}" -type f -name "*.sops.*" -exec grep -L "ENC\[AES256_GCM" {} \;
sh: find "{{.KUBERNETES_DIR}}" -type f -name "*.sops.*" | xargs -I {} sh -c 'sops filestatus {} | jq --exit-status ".encrypted == false" > /dev/null && echo {}'

.encrypt-file:
internal: true
Expand Down

0 comments on commit 9fcabba

Please sign in to comment.