Organization-Specific Protection
- WAF rules are applied per organization to ensure isolated and customizable protection.
- Each organization can define its own WAF policy based on its security requirements.
Policy Modes
Organizations can configure their WAF policy in one of the following modes:- Default Deny with Allow Rules
- All traffic is denied by default.
- Only explicitly allowed requests are permitted.
- Default Allow with Deny Rules
- All traffic is allowed by default.
- Only explicitly denied requests are blocked.
Quick Start
1. Configure WAF for Your Organization
2. Add IP Rules
3. Check IP Access
Core Concepts
Default Policy
IP Types
CIDR Notation
Rule Priority (Specificity)
When multiple rules match, the most specific wins:- Rule 1:
BLOCK 10.0.0.0/8 - Rule 2:
ALLOW 10.1.2.3/32
10.1.2.3 is ALLOWED (/32 beats /8)
WAF Status
API Reference
Endpoints
Request Headers
Data Models
WAF Configuration:Configuration
Application Properties
Limits
Usage Examples
Example 1: Blocklist Mode (Default: ALLOW)
Block specific threats while allowing all other traffic.Example 2: Allowlist Mode (Default: DENY)
Only allow specific trusted IPs.Example 3: Temporary Contractor Access
Example 4: CIDR with Exception
Block a range but allow specific IP within it.198.51.100.75 is ALLOWED (/32 beats /24)
Architecture
Multi-Tenant Design
WAF operates at the organization level with complete isolation.IP Check Flow
Redis Key Patterns
Storage
- MongoDB: Source of truth for config and rules
- Redis: High-performance cache layer
Performance
Response Times
Negative Cache
Caches “no rule found” results to prevent repeated MongoDB queries. Without negative cache: Every unknown IP → MongoDB query With negative cache: First query → MongoDB, subsequent → Redis (~93% faster)Cache Invalidation
Troubleshooting
Enable Debug Logging
Common Issues
Bypass WAF for Troubleshooting
Set status toINACTIVE to allow all traffic:
Safety Features
Auto-Rule Creation
When switching toDENY mode, an ALLOW rule is automatically created for the requesting client IP to prevent admin lockout.
Policy Change Protection
Changing betweenALLOW and DENY clears existing rules to ensure consistent behavior.

