Settings — WAF Protection
Navigate to: Settings → WAF Protection
The built-in Web Application Firewall inspects all gateway requests for injection attacks, prompt manipulation, and other OWASP patterns.
Cross-reference: Full documentation at section 7.5.
Quick steps:
- Navigate to Settings → WAF Protection.
- Toggle WAF Enabled on.
- Set Mode:
Detect(log violations, pass requests) orBlock(reject violating requests with 403). - Review Built-in Rules — all are enabled by default.
- Add a Whitelist Path if a specific route should bypass WAF (e.g.,
/v1/embeddings). - Click Save.
How to test:
- Enable WAF in Block mode.
- Send a request containing a SQL injection pattern:
'; DROP TABLE users; -- - The request should return
403 Forbiddenwith a WAF violation response. - Check the Violations tab — the blocked request should appear.