Files
hermes-agent/tests/secret_sources
Kevin Rajan 016ef9178b fix(redact): register double-escaped JSON private-key lines
Secret-source JSON can contain a private_key string with literal backslash-n.
A consumer that expands those escapes then prints body-only lines bypasses
the applied-source registry, even though the secret remains applied.

Normalize literal escapes only when extracting embedded PEM body lines,
and lock the decoded line-oriented output invariant in a regression test.

Original report: NousResearch/hermes-agent#129165
Carrier: NousResearch/hermes-agent#155458 by c2h5oh

(cherry picked from commit 81a30119834bde6ee362178f47820d163b2ce9b3)
2026-11-15 01:46:46 +01:00
..