Interview › Istio & Service Mesh
How do you debug mTLS handshake failures between two services?
Istio & Service Mesh · Intermediate level
Answer
To debug mTLS handshake failures, I verify both workloads are in the mesh, check PeerAuthentication mode, inspect DestinationRule TLS settings, confirm certificates and trust domains, and read proxy logs for TLS or authentication errors.
Technical explanation
Common causes include one side not injected, STRICT mode with plaintext caller, wrong DestinationRule TLS mode, trust-domain mismatch, expired certificates, or traffic bypassing Envoy.
The source proxy must have the right cluster TLS configuration, and the destination proxy must have valid workload certificates.
Use tls-check and proxy-config secret before changing application code.
Hands-on example
Commands:
$ istioctl authn tls-check deploy/client -n app
$ istioctl proxy-config secret deploy/client -n app
$ istioctl proxy-config cluster deploy/client -n app | grep backend
$ kubectl logs deploy/client -c istio-proxy -n app | grep -i tlsIf STRICT is enabled and client has no sidecar, the fix is onboarding the client or scoping policy.
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
- What does istioctl analyze do?
- What is a common cause of 503 errors in Istio, and how do you diagnose it?
- How do you use istioctl proxy-config and proxy-status to debug Envoy?
- Why might traffic bypass the sidecar, and how do you verify injection?
- How do you exclude certain ports or IP ranges from sidecar interception?
- What is the typical latency and resource overhead of the sidecar, and how do you minimise it?
- How do you handle non-HTTP (TCP) traffic in Istio?
- What is the difference between Istio and an API gateway?