5 Commits
Author SHA1 Message Date
dualfroz 34d16138c5 Describe this repository 2026-10-22 21:02:28 +02:00
dualfroz 7f7dc9b07c Fix RedactingFormatter missing secrets nested in array-valued sensitive keys
RedactingFormatter::collect() only added a sensitive key's value to the
secret list when it was a string or Stringable. When the value was an
array, addSecret() silently dropped it, so none of its leaf strings were
collected. PsrLogMessageProcessor json-encodes array context values when
interpolating them into the message, so a secret nested that way could
already be sitting in the message in plain text by the time this formatter
ran, and the output sweep had nothing to remove it with.

Add collectSensitiveValue() to walk a sensitive key's value and collect
every string leaf, however deeply nested, and use it instead of calling
addSecret() directly.
2026-09-04 08:38:50 +02:00
upstream fb5cc5f9ee Upstream Seldaek/monolog state of the touched files before 466b18ff51 2026-09-04 08:38:50 +02:00
dualfroz 78b679dd92 Fix RedactingFormatter missing secrets nested in array-valued sensitive keys
RedactingFormatter::collect() only added a sensitive key's value to the
secret list when it was a string or Stringable. When the value was an
array, addSecret() silently dropped it, so none of its leaf strings were
collected. PsrLogMessageProcessor json-encodes array context values when
interpolating them into the message, so a secret nested that way could
already be sitting in the message in plain text by the time this formatter
ran, and the output sweep had nothing to remove it with.

Add collectSensitiveValue() to walk a sensitive key's value and collect
every string leaf, however deeply nested, and use it instead of calling
addSecret() directly.
2026-09-06 00:57:08 +02:00
upstream 2216d4fc24 Upstream Seldaek/monolog state of the touched files before 1191965241 2026-09-04 08:38:50 +02:00