Files
ECC/scripts/hooks
Gaurav Dubey c940659dab fix(hooks): create command logs owner-only and rotate them
bash-commands.log and cost-tracker.log record every Bash command but
were created with the default umask (0664 in the report) and grew
without bound. appendLine now opens them with mode 0600, tightens an
existing group/world-readable log on the next write, and rotates the
log to <log>.1 once it would pass 10 MiB, keeping one rotated copy.
This mirrors the metrics.jsonl scheme in scripts/lib/gateguard-metrics.js,
inlined because hooks cannot require scripts/lib/.

Refs #3846
2026-11-19 03:35:48 +00:00
..
2026-11-05 23:11:09 -05:00
2026-11-05 23:28:21 -05:00