Overview
Policies control what happens when RAXE detects a threat. You can configure actions per rule, family, or severity level.Policy Actions
| Action | Behavior | Use Case |
|---|---|---|
ALLOW | Monitor only, don’t block | Learning mode |
FLAG | Warn but allow through | Review queue |
BLOCK | Stop the request | Production security |
LOG | Silent logging | Analytics only |
Configuration
Create~/.raxe/policies.yaml:
Targeting Rules
By Severity
By Family
By Rule ID
By Confidence Threshold
Priority Resolution
When multiple policies match, the highest priority wins (0-1000 scale):pii-042 is allowed while all other PII rules block.
Example Configurations
Learning Mode
Strict Production
SDK Integration
Limits
| Setting | Community | Pro | Enterprise |
|---|---|---|---|
| Max policies | 100 | 500 | Unlimited |
| Max priority | 1000 | 1000 | 1000 |
| Custom rules | 50 | 500 | Unlimited |
