Enabling Policy Enforcement (Deprecated)
This task shows you how to enable Istio policy enforcement.
At install time
In the default Istio installation profile, policy enforcement is disabled. To install Istio
with policy enforcement on, use the --set meshConfig.disablePolicyChecks=false
and --set values.pilot.policy.enabled=true
install option.
Alternatively, you may install Istio using the demo profile5, which enables policy checks by default.
For an existing Istio mesh
Check the status of policy enforcement for your mesh.
If policy enforcement is enabled (
disablePolicyChecks
is false), no further action is needed.Update the
istio
configuration to enable policy checks.Execute the following command from the root Istio directory:
Validate that policy enforcement is now enabled.