Guardrails for AI Traffic
Redact sensitive data and block unsafe content on every request and response.
Built-in and third-party guardrails
Secrets, prompt injection and custom patterns, plus Presidio, Azure, Bedrock, Model Armor, CrowdStrike and more.
Secrets and your own patterns 2
API keys, tokens, private keys and connection strings.
Your own patterns, set to redact or block.
Personal data 2
PII detection and anonymization from your Presidio service.
PII entity recognition in Azure AI Language.
Prompt injection and jailbreaks 3
Prompt injection, jailbreaks and size limits.
Prompt injection, harmful content and Sensitive Data Protection.
Jailbreak and agent hijacking detection.
Content safety and answer quality 3
Hate, violence, sexual and self-harm severity, and Prompt Shields.
Content filters, denied topics, word filters and PII from a Bedrock guardrail.
Hallucination, toxicity and policy evaluators on the answer.
AI security platforms 5
AI detection and response for prompts and model output.
Prompt, data leak and agent action protection.
Runtime threat detection for prompts and responses.
AI usage policy and sensitive data controls.
Prompt and response inspection for AI traffic.
Input and output checks
Requests are checked in order on the way in, responses in reverse on the way out.
- Caller
- 1Secrets Detection
- 2PII redaction
- 3Bedrock Guardrails
- openai/gpt-5
- openai/gpt-5
- 3Bedrock Guardrails
- 2PII redaction
- 1Secrets Detection
- Caller
The first guardrail sees the request first and the answer last, so Secrets Detection checks the final text the caller receives.
PII redaction and restore
Sensitive data is masked before the provider sees it, and restored in the response.
Refund order 4471 for Jane Doe. Card 4111 1111 1111 1111[CARD_1], email jane@acme.com[EMAIL_1], phone +1 415 555 0100[PHONE_1]. Approved by EMP-204518[EMPLOYEE_ID_1]. Export the receipt with key AKIAEXAMPLE7Q2X9MZ4[AWS_KEY_1] to the billing bucket.
Blocking on requests and streams
Blocked requests never reach the provider. Streamed text is released only after it passes.
The checkout failures started at 09:14 UTC after the payments service was redeployed. Requests to the card processor timed out…
09:31:02.418…timed out because the new task read a stale pool size. Rolling back restored the error rate to 0.1% by 09:26 UTC. To reproduce…
09:31:03.207…connect with postgres://admin:EXAMPLE-pass@db.internal.example.com:5432/payments and run the migration check…
09:31:04.015The checkout failures started at 09:14 UTC after the payments service was redeployed. Requests to the card processor timed out because the new task read a stale pool size. Rolling back restored the error rate to 0.1% by 09:26 UTC. To reproduce the failure in staging,
event: error
data: {"error": {"type": "guardrail_blocked",
"message": "Answer blocked by Secrets Detection.",
"side": "answer", "at_character": 1412,
"request_id": "req_8Kd2QmV7"}} Organization-wide required guardrails
Every router runs them, and router owners can't remove or reorder them.
Integrations
Fail closed by default
A check that can't complete blocks the request. Each guardrail has its own timeout and automatic retry.
Integrations
Guardrail results in every traffic log
What each check found and how long it took, separate from model time.
- Request ID
- req_4Wd7Hn2PxQ
- Timestamp
- 2026-10-21 14:08:47.902
- Organization
- org_7Hq2mR4vXa
- Token
- tok_support_svc
- Correlation ID
- ticket-48213
- Customer
- cus_northwind
- Session
- sess_3f9a2c
- Peer IP
- 203.0.113.24
- Alias
- —
- Router ID
- rt_8fK2pQ
- Model requested
- openai/gpt-5
- Model served
- openai/gpt-5
- Vendor
- openai
- Variant
- standard
- Region
- us-east-1
- Wire id
- gpt-5-2025-08-07
- Prompt ID
- ip_support_v4
- File path
- —
- Revision
- 4
| # | Filter | Checked | Result | Labels | Time | When |
|---|---|---|---|---|---|---|
| 1 | MR Secrets Detection Guardrail | Request | Passed | — | 0.3 ms | Before Model Call |
| 2 | MR PII redaction Guardrail | Request | Masked | email ×1 · phone ×1 | 0.4 ms | Before Model Call |
| 3 | B Bedrock Guardrails Guardrail | Request | Passed | — | 182.6 ms | Before Model Call |
| 3 | B Bedrock Guardrails Guardrail | Answer | Passed | — | 27.9 ms | During Stream |
| 2 | MR PII redaction Guardrail | Answer | Passed | — | 0.2 ms | During Stream |
| 1 | MR Secrets Detection Guardrail | Answer | Blocked | aws_secret_access_key detected in answer at character 1,284 | 0.3 ms | During Stream |
- Total
- 2176ms
- TTFT
- 812ms
- Request upload
- 0.8 ms
- Router overhead
- 0.6 ms
- Filters
- 211.7 ms
- Upstream
- 1962ms
- Router response
- 0.5 ms
- Prompt
- 1,412
- Completion
- 296
- Request bytes
- 6,918
- Response bytes
- 1,512
- Total
- $0.0047
- Input
- $0.0018
- Output
- $0.003
- Cache read
- $0
- Cache write
- $0
Start adding guardrails
Create an integration, attach it to a router and see every check in Traffic.