Skip to main content
Both the Traversal Connector and the Traversal Processor support redaction: a regex-based pipeline that rewrites sensitive text in your data before it is forwarded to Traversal. Rules are defined in a TOML file you author.

How it works

When a rules file is configured, the payload of each request is scanned against your rules in order. Each rule is a named regex pattern with a replacement string. Rules are applied sequentially. The output of one rule becomes the input to the next. Thus, ordering matters when patterns could overlap. Redaction which operates on JSON payloads replaces patterns in JSON keys and values while preserving the structure of the payload.

Rules file format

Fields

The regex engine does not support lookaheads, lookbehinds, or backtracking. Patterns using those features will cause startup to fail with a parse error.

Field filtering

The redaction engine supports two optional per-rule fields that restrict which fields a rule applies to: These rules can be combined on the same rule in tandem. When skip_fields and redact_fields are set, both must pass for the rule to fire on a given field. Rules without either filter apply to all fields.