Interview › Istio & Service Mesh
What is mutual TLS (mTLS), and how does Istio provide it automatically?
Istio & Service Mesh · Basic level
Answer
mTLS means both client and server authenticate each other using certificates, then encrypt the connection. Istio provides this automatically by issuing workload certificates, configuring proxies with identities, and using those identities during service-to-service communication.
Technical explanation
Each workload gets a SPIFFE-like identity tied to its service account and trust domain.
Envoy proxies use certificates from Istio to establish encrypted and authenticated connections.
Once mTLS is enabled, policy can reason about authenticated service identity instead of relying only on IP addresses.
Hands-on example
Check mTLS:
$ istioctl authn tls-check deploy/frontend.app
$ istioctl proxy-config secret deploy/frontend -n appApply STRICT in a namespace:
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
name: default
namespace: app
spec:
mtls:
mode: STRICTCheck 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 is outlier detection, and how does it eject unhealthy hosts?
- What are timeouts in Istio, and how do they interact with retries?
- What is a PeerAuthentication policy?
- What is a RequestAuthentication policy, and how does it validate JWTs?
- How do you inject delays or aborts to test resilience with Istio?
- What is an AuthorizationPolicy, and how do you enforce service-to-service access control?
- What is fault injection in Istio, and why would you use it?
- How does Istio do request routing based on headers or paths?