Skip to main content
Verbex uses a Web Application Firewall (WAF) to protect platform APIs and services from common web threats and malicious traffic.

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

Response:

Core Concepts

Default Policy

   

IP Types

   

CIDR Notation

   

Rule Priority (Specificity)

When multiple rules match, the most specific wins:
Example:
  • Rule 1: BLOCK 10.0.0.0/8
  • Rule 2: ALLOW 10.1.2.3/32
Result: IP 10.1.2.3 is ALLOWED (/32 beats /8)

WAF Status

   

API Reference

Endpoints

   

Request Headers

   

Data Models

WAF Configuration:
IP Access Rule:
IP Check Response:

Configuration

Application Properties

Limits

   

Usage Examples

Example 1: Blocklist Mode (Default: ALLOW)

Block specific threats while allowing all other traffic.
Result:    

Example 2: Allowlist Mode (Default: DENY)

Only allow specific trusted IPs.
Result:    

Example 3: Temporary Contractor Access

Rule auto-expires and is cleaned up by hourly job.

Example 4: CIDR with Exception

Block a range but allow specific IP within it.
Result: 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 to INACTIVE to allow all traffic:
Remember to re-enable after troubleshooting!

Safety Features

Auto-Rule Creation

When switching to DENY mode, an ALLOW rule is automatically created for the requesting client IP to prevent admin lockout.

Policy Change Protection

Changing between ALLOW and DENY clears existing rules to ensure consistent behavior.