k8wiz
Istio
Hard
Security

A workload has AuthorizationPolicies with CUSTOM, DENY, and ALLOW actions. In what order does Istio check them?

Select your answer:

Show answer and explanation

Answer: CUSTOM, then DENY, then ALLOW

Explanation

Istio checks the layers in order CUSTOM, DENY, ALLOW, and a request that matches a denying policy in an earlier layer stops there. If no ALLOW policy applies to the workload, the request is allowed. If any ALLOW policy applies, at least one must match or the request is denied. That last rule is why adding a single ALLOW policy can block traffic it doesn't mention.