Skip to main content
Policy modes let you test policies in production without breaking anything. Think of them as a safety switch that separates “what would happen” from “what actually happens.”

Why policy modes matter

Imagine deploying a new security policy that accidentally blocks legitimate user requests. Without policy modes, you’d have to:
  1. Deploy the policy
  2. Hope it works correctly
  3. Deal with angry users if it doesn’t
  4. Roll back and start over
With policy modes, you can:
  1. Deploy in MONITOR mode
  2. See what would be blocked (without actually blocking)
  3. Tune the policy based on real traffic
  4. Switch to ENFORCE mode with confidence

The three modes

TealTiger supports three policy modes: Policies are evaluated and violations are logged, but nothing is blocked.
Use MONITOR mode when:
  • Testing new policies in production
  • Measuring impact before enforcement
  • Tuning policy thresholds
  • Validating policy logic
What happens:
  • ✅ 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.
Use ENFORCE mode when:
  • Policies have been validated in MONITOR mode
  • You’re confident in policy behavior
  • Ready for production enforcement
What happens:
  • ✅ 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.
Use REPORT_ONLY mode when:
  • You want visibility without enforcement
  • Minimizing performance impact
  • Initial policy exploration

Per-policy mode overrides

You can set different modes for different policies:
This lets you:
  • Enforce critical policies immediately
  • Monitor less critical policies
  • Roll out enforcement incrementally
Follow this sequence for safe policy deployment:

Phase 1: MONITOR mode (1-2 weeks)

Deploy new policies in MONITOR mode to measure impact.
What to watch:
  • How many requests would be blocked?
  • Are there false positives?
  • What’s the violation rate?
Example metrics:

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

  1. Always start in MONITOR mode - Never deploy new policies directly to ENFORCE
  2. Monitor for at least 1 week - Give yourself time to see patterns
  3. Set violation rate targets - Aim for under 5% false positives
  4. Enforce critical policies first - Start with high-risk operations
  5. Document mode changes - Track when and why you changed modes
  6. 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