1# Network Security 2025: Dev Guide
2
3## Key Changes
4- Auto-updated IP blocklists for Tor/bot traffic
5- Circuit breaker patterns in YAML
6- CEL interpolation for smart routing
7
8## CEL Interpolation
9CEL lets you write dynamic routing rules using request data. Think of it as a safe, API-focused programming language.
10
11### Basic Examples
12```yaml
13# Match specific headers
14match: request.headers['user-agent'].contains('Mozilla')
15
16# Route based on path
17match: request.path.startsWith('/api/v2')
18
19# Combine conditions
20match: request.method == 'POST' && request.path.contains('/admin')
21```
22
23### Common Use Cases
24- Header-based routing
25- Geographic routing (using IP data)
26- A/B testing
27- Version-based traffic splitting
28
29## Circuit Breaker Implementation
30Protect your APIs from cascading failures with automatic circuit breaking.
31
32### Basic Config
33```yaml
34edge:
35 circuit_breaker:
36 error_threshold: 50 # Percentage of errors
37 interval: 10s # Time window
38 tripped_duration: 30s # Recovery time
39```
40
41### API-Specific Example
42```yaml
43endpoints:
44 - path: /api/v1/*
45 circuit_breaker:
46 error_threshold: 25
47 interval: 5s
48 tripped_duration: 60s
49```
50
51### Combined Protection
52```yaml
53edge:
54 rate_limit: 100/min
55 circuit_breaker:
56 error_threshold: 40
57 interval: 15s
58```
59
60### Monitored Events
61- 5xx responses
62- Connection timeouts
63- TLS handshake failures
64
65## Security Tooling Updates
66- Traffic Policy actions with Basic Auth
67- Request data manipulation (headers, routes)
68- TLS termination + mTLS support
69
70## Latest Features
71- OAuth/OIDC modules in Traffic Policy
72- IP Intelligence metadata per request
73- Query string/Base64/JSON encoding helpers
74
75> **Pro Tip**: Circuit breaker functionality works alongside existing DDoS protection
Created on 1/31/2025