Repository navigation
Commit 5d9fcdf
authored
fix(audit): redact camelCase toolResult and toolArguments in audit trail (#329)
Tool results and arguments were only redacted under snake_case
tool_result/tool_arguments, but audit payloads also carry them as
toolResult/toolArguments (direct MCP and computer tool calls). The
normalized check fell through because the set lacked the stripped
forms toolresult/toolarguments, so plaintext secrets leaked into
audit_events.payload.
Add the two missing normalized keys so both spellings are covered.
Verified with redactAuditPayload unit probes: snake, camel, nested,
and upper-case variants now all return [REDACTED].1 parent a3f1284 commit 5d9fcdf
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments