← Back to changelog
Tobias Wochinger
November 27, 2026
Block and redact PII and secrets with AI Gateway guardrails

Add guardrails to the Langfuse AI Gateway to block, redact, or log PII, secrets, prompt injection, and custom patterns across requests and responses.
You can now add guardrails to the Langfuse AI Gateway to block, redact, or log sensitive content in both requests and model responses under AI Gateway → Guardrails.
- Built-in and external detection: Match PII, secrets, prompt injection, and custom patterns out of the box, or connect an existing Amazon Bedrock guardrail.
- Block, redact, or log inputs and outputs: Reject matching traffic, replace sensitive text with a label such as
[REDACTED]before forwarding or returning (and beforeFULLtrace capture), or log matches for monitoring. - Fine-grained targeting: Apply guardrails to your entire organization or to specific users and API keys, scoped to the latest turn, full input, model output, or both.
Was this page helpful?