Interview › Istio & Service Mesh
How would you use the mesh to enforce least-privilege between microservices?
Istio & Service Mesh · Advanced level
Answer
I enforce least privilege by combining mTLS STRICT, dedicated service accounts, default-deny AuthorizationPolicy, explicit ALLOW rules for known service edges, JWT validation where user context matters, and CI validation so policy changes are reviewed before production.
Technical explanation
The service account becomes the workload identity, so workloads should not share a broad default service account.
Start by observing traffic to build an allowlist, but move to enforcement once owners validate required flows.
Policy should be owned as code and tested with representative requests.
Hands-on example
Least-privilege rollout:
1. Inventory edges from Istio telemetry for 14 days.
2. Replace default service accounts.
3. Apply namespace default-deny.
4. Add ALLOW policies per service edge.
5. Dry-run or canary the policy.
6. Enforce and alert on denied legitimate traffic.
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 do you observe and reduce the error rate of a specific service via the mesh?
- How do you test an AuthorizationPolicy before enforcing it (dry-run)?
- What is the difference between L4 and L7 policy enforcement in the mesh?
- How does Istio interact with NetworkPolicies — do you need both?
- How do you integrate an external authorization service with Istio?
- How would you implement rate limiting in Istio (local and global)?
- How do you handle gradual migration of services into mTLS STRICT mode?
- What is SNI-based routing, and how does the ingress gateway use it?