Skip to content

feat(converter): add SanitizingPayloadCodec for workflow payload redaction - #1686

Closed
glatinone wants to merge 3 commits into
temporalio:mainfrom
glatinone:feat/payload-sanitizer-interceptor
Closed

feat(converter): add SanitizingPayloadCodec for workflow payload redaction#1686
glatinone wants to merge 3 commits into
temporalio:mainfrom
glatinone:feat/payload-sanitizer-interceptor

Conversation

@glatinone

Copy link
Copy Markdown

Adds a policy-driven SanitizingPayloadCodec that redacts sensitive key patterns (API keys, JWTs, auth tokens, PII) from json/plain payloads before they are written to history. Includes tests for nested structures, list traversal, and no-op behavior. Zero-overhead pass-through when no keys match. Exposed via temporalio.contrib.

  • New: temporalio/contrib/sanitizer.py
  • Exported in temporalio/contrib/init.py
  • Tests: tests/contrib/test_sanitizer.py

@glatinone
glatinone requested a review from a team as a code owner July 28, 2026 06:10
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tconley1428

Copy link
Copy Markdown
Contributor

Can you justify why you think this is a generic enough need to be part of the SDK platform rather than an implementation detail in users' applications?

Additionally, CLA is required before we can review.

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.

3 participants