
- Validate policies by observing “would-be” denies without impacting live traffic.
- Identify false positives or unintended blocks before switching to enforcement.
- Roll out complex network policies gradually and safely.
How to enable audit mode
There are two ways to enable policy audit mode:
- Globally (all endpoints) via Helm — requires restarting Cilium components.
- Per-endpoint (specific endpoints) using cilium-dbg — no cluster-wide restart required.
- Edit your Cilium Helm chart values to turn on audit mode:
- After updating Helm values, restart the Cilium operator and agent so the change takes effect:
- Use cilium-dbg inside a cilium-agent pod to change a single endpoint’s configuration. Replace variables with your values:
Policy audit mode is ideal for testing and validating network policies safely. Use it to identify unexpected denies and tune your rules before switching to enforcement.
Audit mode does not provide network isolation or enforce security controls. Do not rely on audit mode for protection — enable policy enforcement only after you have validated the behavior.
- Cilium Helm chart values: https://docs.cilium.io/en/stable/gettingstarted/helm/
- cilium-dbg tool: https://docs.cilium.io/en/stable/tools/cilium-dbg/
- Hubble (observability): https://docs.cilium.io/en/stable/gettingstarted/hubble/
- Cilium documentation: https://docs.cilium.io/