Interview Prep/DevSecOps/Kubernetes Security

How does a service mesh contribute to zero trust inside the cluster?

IntermediateConceptKubernetes Security
Answer

The mesh gives every workload a cryptographic identity (SPIFFE ID derived from its service account) and encrypts pod-to-pod traffic with mutual TLS, with automatic certificate rotation. Authorisation policies can then allow calls by identity rather than IP.

apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata: { name: default, namespace: istio-system }
spec:
  mtls: { mode: STRICT }

STRICT rejects plaintext. Roll out with PERMISSIVE first, then flip once all clients have sidecars or ambient mode enabled. NetworkPolicy (L3/L4) and mesh AuthorizationPolicy (L7 identity) complement each other.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security