Quick Start
Policies are configured through the Oximy Dashboard. Configure policies in two simple steps:1
Choose Guardrails
Select which protections to enable (prompt injection, data leakage, jailbreak prevention,
content moderation)
2
Set Enforcement
Choose BLOCK or WARN for each guardrail
Enforcement Levels
Choose how policies respond to violations:BLOCK
Stops requests with violations before they reach the model. Returns an error and logs the
violation.
WARN
Allows requests but logs violations. Content is sanitized before proceeding.
Common Configurations
Start with these templates and customize as needed:- Customer-Facing API
- Internal Tool
- Development
Protect public-facing applications with strict enforcement:Key Features:
- Blocks all critical threats
- Warns on content violations for monitoring
- Maximum protection for public APIs
Compliance Templates
Pre-configured policies for common regulations:HIPAA
- PHI detection (SSN, medical records, DOB) - Medical content moderation - BLOCK enforcement - Comprehensive audit logging
PCI DSS
- Payment card data detection - CVV and expiration protection - BLOCK enforcement for card data
- Transaction logging
GDPR
- EU personal data protection - Data minimization rules - WARN enforcement with logging - Right to deletion support
Advanced Configuration
Custom Patterns
Add organization-specific detection rules:Environment-Specific Settings
Different rules for different environments:Testing & Monitoring
Test Your Policy
Test policies before deploying to production:x-oximy-violations: Number of violations detectedx-oximy-guardrails-status: Processing statusx-oximy-blocked-patterns: What was detected
Shadow Mode
Run policies in monitoring mode without enforcement:- Set enforcement to WARN
- Monitor for false positives
- Analyze violation patterns
- Gradually increase enforcement to BLOCK
Key Metrics
Track policy effectiveness in the dashboard:- Detection: Violations by category, false positive rate
- Enforcement: Blocked vs warned requests
- Performance: Processing latency, throughput impact
Best Practices
Policy Design
- Start strict, relax gradually - Use compliance templates as starting points - Document policy decisions - Version control all changes
Deployment
- Test thoroughly in staging - Deploy gradually (start with small percentage) - Monitor closely for first 24 hours - Have a rollback plan ready
Next Steps
Gateway Projects
Assign policies to Gateway projects