Why policy modes matter
Imagine deploying a new security policy that accidentally blocks legitimate user requests. Without policy modes, you’d have to:- Deploy the policy
- Hope it works correctly
- Deal with angry users if it doesn’t
- Roll back and start over
- Deploy in MONITOR mode
- See what would be blocked (without actually blocking)
- Tune the policy based on real traffic
- Switch to ENFORCE mode with confidence
The three modes
TealTiger supports three policy modes:MONITOR mode (recommended for new policies)
Policies are evaluated and violations are logged, but nothing is blocked.- Testing new policies in production
- Measuring impact before enforcement
- Tuning policy thresholds
- Validating policy logic
- ✅ Policies are evaluated
- ✅ Decisions are recorded
- ✅ Audit logs are created
- ❌ Actions are NOT blocked
ENFORCE mode (production enforcement)
Policies are evaluated and violations are blocked.- Policies have been validated in MONITOR mode
- You’re confident in policy behavior
- Ready for production enforcement
- ✅ Policies are evaluated
- ✅ Decisions are recorded
- ✅ Audit logs are created
- ✅ Actions ARE blocked
REPORT_ONLY mode (visibility only)
Similar to MONITOR, but with minimal logging overhead.- You want visibility without enforcement
- Minimizing performance impact
- Initial policy exploration
Per-policy mode overrides
You can set different modes for different policies:- Enforce critical policies immediately
- Monitor less critical policies
- Roll out enforcement incrementally
Recommended rollout sequence
Follow this sequence for safe policy deployment:Phase 1: MONITOR mode (1-2 weeks)
Deploy new policies in MONITOR mode to measure impact.- How many requests would be blocked?
- Are there false positives?
- What’s the violation rate?
Phase 2: Tune policies (1 week)
Adjust policies based on MONITOR mode data.Phase 3: Selective ENFORCE (1 week)
Enforce critical policies, keep others in MONITOR.Phase 4: Full ENFORCE (ongoing)
Switch all policies to ENFORCE mode.Monitoring policy impact
Track these metrics during rollout:Violation rate
False positive rate
Policy effectiveness
Mode behavior comparison
What doesn’t change between modes
Policy modes only affect enforcement. These stay the same:- ✅ Policy evaluation logic
- ✅ Condition matching
- ✅ Risk score calculation
- ✅ Reason code generation
- ✅ Audit event structure
- ✅ Decision determinism
Complete example
Here’s a complete example showing mode-aware handling:Best practices
- Always start in MONITOR mode - Never deploy new policies directly to ENFORCE
- Monitor for at least 1 week - Give yourself time to see patterns
- Set violation rate targets - Aim for under 5% false positives
- Enforce critical policies first - Start with high-risk operations
- Document mode changes - Track when and why you changed modes
- Alert on high violation rates - Get notified if violations spike
Common pitfalls
Pitfall 1: Skipping MONITOR mode
Pitfall 2: Not monitoring long enough
Pitfall 3: Ignoring false positives
Next steps
Decision model
Understand how decisions are made
Policy authoring
Write custom policies
Audit schema
See what gets logged
Troubleshooting
Debug policy issues

