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

Environment variables

  • PARENT_POLICY_ID: The UUID of the parent Schema Validation policy.

Set up the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!