The Mask Fields Consume policy redacts string fields of Kafka records during the consume phase.
It runs on a record that a Schema Validation Consume policy parsed, so you must nest it under that policy.
Use this policy to redact a value only for the client that reads it. The record in the backend cluster doesn’t change, so systems that are permitted to see the original value keep their access to it. To redact a value before Event Gateway writes it to the cluster, use the Mask Fields Produce policy instead.
Select the fields to redact as a static list of paths, or as a single expression that returns a list of paths. Each entry pairs a set of paths with the strategy that redacts them.