Skip to content

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

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

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

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Linear: SEC-2524

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

Tested locally with ./gradlew spotlessCheck; opened as draft for CI to run ./gradlew test on JDK 21.

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