Interview Prep/DevSecOps/Certificates, TLS and security incident response

After setting Istio `PeerAuthentication` to `STRICT`, a legacy VM client gets `curl: (56) Recv failure: Connection reset by peer`

IntermediateTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → STRICT mode only accepts mTLS connections from mesh workloads. A plaintext client outside the mesh is rejected at the sidecar.

Diagnose →

istioctl x describe pod <server-pod> -n prod
kubectl get peerauthentication -A
kubectl logs <server-pod> -c istio-proxy | tail

Fix → Bring the client into the mesh (a sidecar, or WorkloadEntry for the VM), or route it through an ingress gateway that terminates TLS. As a time-boxed exception, set PERMISSIVE on that one workload or port with portLevelMtls.

Prevent → Before going STRICT, check telemetry for plaintext connections (connection_security_policy="none" in Istio metrics) and migrate those clients first.

All DevSecOps questions

More on Certificates, TLS and security incident response