Skip to content

fix(logging): recursively redact nested and pattern-matched sensitive JSON keys - #102

Draft
tbarbugli wants to merge 1 commit into
masterfrom
tommaso/sec-2524-log-redaction
Draft

tbarbugli wants to merge 1 commit into
masterfrom
tommaso/sec-2524-log-redaction

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Linear: SEC-2524

Summary

  • Make LogRedaction::redactJsonBody() recurse into nested arrays/objects and redact sensitive key patterns (secret, token, password, credential, private_key, auth_key, p12_cert, stream_key).
  • Add unit test in tests/Http/LogRedactionRecursiveTest.php.

Testing

  • make lint && make test-unit (PHPStan 0 errors, 337 PHPUnit tests passing)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant