Mask a field before it reaches the clusterv1.3+
Redact an SSN field before Event Gateway writes the record to the backend cluster.
The keep_chars strategy keeps the first character and the last two characters, and replaces the middle with ***.
The phrase has a fixed length, so the masked value doesn’t reveal the length of the original.
This change is irreversible. Use the produce phase when no client, and no operator of the backend cluster, can see the original value.
Prerequisites
- A Schema Validation Produce policy that parses the record value.
Environment variables
PARENT_POLICY_ID: The UUID of the parent Schema Validation policy.