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.
More on Certificates, TLS and security incident response
A cert-manager Certificate stays `Ready=False` and the Challenge shows `Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'`IntermediateA DNS-01 challenge hangs forever with `DNS record for "acme.com" not yet propagated`, although `dig` from your laptop shows the TXT recordAdvancedIssuance fails with `429 urn:ietf:params:acme:error:rateLimited: too many certificates already issued`BeginnerA service calling another internal service fails with `x509: certificate signed by unknown authority`BeginnerAt 05:30 every client starts failing with `x509: certificate has expired or is not yet valid`BeginnerBrowsers load `https://api.acme.com` fine, but `curl` and Java clients fail with `unable to get local issuer certificate`Intermediate