The Mask Fields Produce policy redacts string fields of Kafka records during the produce phase.
It runs on a record that a Schema Validation Produce policy parsed, so you must nest it under that policy.
Use this policy to redact a value before Event Gateway writes it to the backend cluster. This change is irreversible, as the cluster never receives the original value. To redact a value for the client that reads it, and keep the stored record unchanged, use the Mask Fields Consume 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.