fix(logging): build the audit line from a JMESPath allowlist (pack leaks _entry) #64

Merged
sirius merged 1 commit from wt/t_34ddaa83 into master 2026-11-27 05:56:12 +00:00

2026-11-27

Lance Walters
fix(logging): build the audit line from a JMESPath allowlist, never pack the raw record
stage.pack embeds the original line under `_entry`, so the first cut wrote
responseObject.data (plaintext secrets) into Loki anyway. Replace pack with a
single JMESPath multi-select hash + stage.output: the emitted line contains
exactly the allowlisted keys and nothing else, with proper JSON escaping.
Verified end-to-end against a synthetic record carrying data.password using
loki.echo: 0 occurrences of the value, labels resource/verb still present.
2026-11-27 00:56:07 -05:00