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.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate