Skip to content

Commit a110ea6

Browse files
author
Paweł Kędzia
committed
Add decrypt_auditor_logs.sh script for batch decryption of GPG‑encrypted auditor logs.
1 parent 5d762af commit a110ea6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/decrypt_auditor_logs.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
AUDIT_DIR="logs/auditor"
5+
6+
for enc_file in "$AUDIT_DIR"/*.audit; do
7+
json_file="${enc_file%.audit}.json"
8+
9+
echo "Decrypting $enc_file$json_file"
10+
gpg --output "$json_file" --decrypt "$enc_file"
11+
done

0 commit comments

Comments
 (0)