PII Redaction plugin
The PII Redaction plugin finds personal data in what the client sends and masks it, replaces it with a short hash, or refuses the request. The same rules scrub MCP tools/call results before the client gets them, and the copies of the request and of MCP tool results that the gateway keeps for traces and LLM logs. The upstream receives the rewritten body. On a standalone data plane that has no control plane, the plugin doesn’t rewrite request bodies yet.
Where it runs
LLM answers aren’t scrubbed on the way to the client. Only their copies on traces and in LLM logs are.
Configuration
The actions do the following:
maskreplaces a match with its type, for example[EMAIL].hashreplaces a match with its type and 8 hexadecimal characters of a salted SHA-256, for example[EMAIL:1a2b3c4d]. The same value gives the same hash across requests.blockrefuses the request with422. Nothing is rewritten.offdoesn’t scan for that entity.
phone and ip are scanned only when entities names them, because their patterns match ordinary numbers and version strings. With no configuration, the plugin masks email addresses, card numbers, US social security numbers, and AWS access key IDs. Card numbers must pass the Luhn check.

