Interview › Istio & Service Mesh
How do you integrate an external authorization service with Istio?
Istio & Service Mesh · Advanced level
Answer
External authorization delegates the allow/deny decision to an external auth service through Envoy's ext_authz integration. I use it when policy depends on business context, entitlements, tenant state, or centralized authorization logic that is not practical to encode only in AuthorizationPolicy.
Technical explanation
The proxy sends selected request metadata to the external auth service.
The auth service returns allow or deny, optionally with headers to add or remove.
Availability and latency of the auth service become part of the request path, so it needs SLOs, caching strategy, and failure-mode design.
Hands-on example
Design:
Gateway receives request with JWT.
RequestAuthentication validates token.
ext_authz sends user, tenant, path, and method to authz-service.
authz-service checks entitlements and returns allow/deny.
Load test the authz service and decide fail-open vs fail-closed per route risk.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- How would you implement rate limiting in Istio (local and global)?
- How does Istio interact with NetworkPolicies — do you need both?
- What is SNI-based routing, and how does the ingress gateway use it?
- What is the difference between L4 and L7 policy enforcement in the mesh?
- How do you observe and reduce the error rate of a specific service via the mesh?
- How do you decide whether a service should be in the mesh or not?
- How do you test an AuthorizationPolicy before enforcing it (dry-run)?
- How do you handle gradual migration of services into mTLS STRICT mode?