Underlying providers are subject to change. TrueFoundry-managed guardrails are currently backed by Azure and OpenAI services. TrueFoundry may change the underlying provider or model at any time, without prior notice. Don’t build on the assumption that a guardrail is tied to a specific vendor. If you need a fixed vendor, use an External Provider integration with your own credentials.
Where to add these guardrails
Add PII / PHI Detection, Prompt Injection, and Content Moderation on the LLM Input hook. They then screen every prompt before it reaches the model.All TrueFoundry Guardrails
Secrets Detection
Catches and redacts credentials like AWS keys, API keys, JWT tokens, and private keys.
Code Safety Linter
Flags unsafe code patterns — eval, exec, os.system, subprocess calls, dangerous shell commands.
SQL Sanitizer
Catches risky SQL: DROP, TRUNCATE, DELETE/UPDATE without WHERE, string interpolation.
Regex Pattern Matching
Matches and redacts sensitive patterns (PII, payment cards, credentials) using built-in or custom regex.
Prompt Injection
Detects prompt injection attacks and jailbreak attempts using model-based analysis.
PII Detection
Finds and redacts personally identifiable information with configurable entity categories.
Content Moderation
Blocks harmful content across hate, self-harm, sexual, and violence categories with adjustable thresholds.
Metadata Validation
Enforces required request metadata keys and allowed values before the request proceeds.
Cedar Guardrails
Fine-grained access control for MCP tools using Cedar policy language with default-deny security.
OPA Guardrails
Fine-grained access control with full policy lifecycle management using Open Policy Agent.