Zuplo AI Guardrails
The Zuplo AI Gateway supports guardrails to protect your AI-powered applications from security threats, ensure compliance, and maintain quality in both requests and responses flowing through the gateway.
Available Guardrail Policies
Akamai AI Firewall
The Akamai AI Firewall provides enterprise-grade security for AI applications, including:
- Prompt injection defense - Protects against attackers manipulating AI models through deceptive inputs
- Data loss prevention (DLP) - Detects and blocks sensitive data leaks in AI-generated responses and incoming requests
- Toxic content filtering - Flags hate speech, misinformation, and offensive content
- Adversarial AI security - Protects against remote code execution, model back doors, and data poisoning attacks
Observability & Tracing
Guardrails work alongside observability policies to provide visibility into AI interactions:
- Comet Opik Tracing - Trace and monitor AI interactions with Comet's Opik platform
- Galileo Tracing - Monitor AI quality and performance with Galileo
How Guardrails Work
Guardrails are applied as policies on your AI Gateway routes. They inspect both inbound requests (prompts sent to LLM providers) and outbound responses (content returned from LLM providers) in real-time.
When a guardrail detects a policy violation:
- The request or response is blocked before reaching its destination
- An appropriate error response is returned to the caller
- The violation is logged for audit and monitoring purposes
Getting Started
To add guardrails to your AI Gateway:
- Open your project associated with your AI Gateway in the Zuplo Portal
- Open the Code tab and select your
routes.oas.jsonfile - Select the route for your AI Gateway endpoint
- Click Add Policy and search for the guardrail you want to add
- Configure the policy settings and click OK
- Save your changes to deploy
Custom Guardrails
You can build custom guardrails using Zuplo's programmable gateway. Create a custom inbound or outbound policy that inspects request/response content and applies your own rules. This allows you to implement organization-specific content policies, regulatory compliance checks, or domain-specific validation.