BlogIstio

Why does a DestinationRule cause 503s under STRICT mTLS?

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 6 min read

Why does a DestinationRule cause 503s under STRICT mTLS?
On this page

A DestinationRule decides what the calling sidecar sends, and a PeerAuthentication decides what the receiving sidecar accepts. If the server is STRICT and the DestinationRule sends plaintext, the connection fails and the client sees a 503. Setting trafficPolicy.tls.mode to ISTIO_MUTUAL, or leaving TLS unset with auto mTLS on, brings the two back in line.

The Istio documentation describes the symptom: requests start returning 503 right after a DestinationRule is applied, and keep doing so until it is removed or reverted. It says to expect this only when automatic mutual TLS was disabled at install. Our reading: if a DestinationRule sets an explicit TLS mode, that mode wins, so check it even with auto mTLS on.

Which combinations fail?

PeerAuthentication has three modes that matter here: PERMISSIVE accepts mTLS and plaintext, STRICT accepts only mTLS, and DISABLE accepts only plaintext. The DestinationRule modes are DISABLE (plaintext), SIMPLE, MUTUAL and ISTIO_MUTUAL (each starts a TLS connection).

Client DestinationRule mode against server PeerAuthentication, read 4 December 2026
Client sends (DestinationRule)Server accepts: PERMISSIVEServer accepts: STRICTServer accepts: DISABLE
No TLS setting, auto mTLS onWorks, mTLSWorks, mTLSNot covered by the pages we read; test it
ISTIO_MUTUALWorksWorksExpected to fail: the server takes plaintext
DISABLE (plaintext)WorksFails: 503Works

SIMPLE and MUTUAL also make the sidecar originate a TLS connection, so the server must expect TLS. If you set TLS per port with portLevelSettings, check each port against the server's port-level mTLS too.

When do you use ISTIO_MUTUAL, MUTUAL or SIMPLE?

Use ISTIO_MUTUAL for traffic between workloads inside the mesh. The sidecar uses the certificates Istio issues, and every other TLS field in the rule must stay empty. Use MUTUAL when you bring your own client certificate for a service that Istio does not manage: the rule then needs a clientCertificate and a privateKey, and caCertificates if the operating system trust store is not enough. SIMPLE starts TLS and verifies the server but presents no client certificate.

If the certificate lives in a Kubernetes secret, credentialName can replace the file paths. It names a secret in the namespace of the proxy and cannot be combined with separate certificate paths. When sni is unset, Istio takes it from the host or the authority header.

What does auto mTLS change?

Auto mTLS is on by default. When a DestinationRule sets no TLS mode, the sidecar works out whether to send Istio mutual TLS, and it falls back to plaintext only for workloads without a sidecar. That is why most meshes never need a DestinationRule for encryption, and why a rule written for traffic shaping, such as subsets or load balancing, should leave TLS alone.

Gateways add a second set of connections. A request through an ingress gateway has a downstream leg from the client and an upstream leg to the backend, and each has its own TLS configuration. A DestinationRule governs the upstream leg, so the same mismatch can appear behind a gateway while sidecar-to-sidecar calls work.

A DestinationRule that sets the mode explicitly looks like this:

apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
  name: orders
spec:
  host: orders.prod.svc.cluster.local
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL

How does mTLS origination to an external service differ?

Outside the mesh, a DestinationRule often does TLS origination: the application sends plain HTTP and the sidecar opens the TLS connection. The ServiceEntry lists port 80 with targetPort 443, and a DestinationRule sets SIMPLE for port 80 under portLevelSettings. For mTLS origination through an egress gateway or a sidecar, the rule uses MUTUAL with a credentialName that points at a secret holding tls.key, tls.crt and ca.crt. That secret must sit in the client pod's namespace, and credentialName works only together with a workloadSelector.

Two details matter during an incident. The hop from the application to its sidecar stays plaintext, and the SNI travels in clear text, so an observer can see which host the client contacts. A mismatch on the egress side shows up the same way as a STRICT mismatch inside the cluster: a connection failure on the client sidecar.

How do you find the offending rule?

Work from the failing host outward. Each step is read-only:

  1. Read the log flag first. UF with a 503 on the client sidecar points at the connection, not the route. The response flag post lists the others.
  2. List what applies to the host: kubectl get destinationrule -A and kubectl get peerauthentication -A, then read the TLS mode in each.
  3. Run istioctl analyze --all-namespaces. It flags DestinationRules whose host matches no service and other configuration mistakes.
  4. Check scope. A PeerAuthentication with a workload selector in the root namespace is ignored, and portLevelMtls refers to the workload port, not the Service port.
  5. Fix by setting trafficPolicy.tls.mode: ISTIO_MUTUAL on the DestinationRule, or removing its TLS block, then re-read the access log.

To confirm which TLS mode a pod really uses, run istioctl x describe pod. It prints the DestinationRule's TLS mode, reports whether the pod enforces mTLS under a STRICT policy, and warns about a TLS conflict if clients send plain HTTP. The command is marked experimental, so treat it as a pointer, not proof. A second check from the Istio authentication task: a request to httpbin's /headers that carries an X-Forwarded-Client-Cert header was sent over mTLS, while a target without a sidecar shows none.

One behaviour surprises teams: auto mTLS still sends mTLS to ports listed in excludeInboundPorts. To send plaintext to those ports, set the DestinationRule mode to DISABLE for them.

What should you not do during the incident?

Do not loosen the mesh to make errors stop. Setting the whole mesh to PERMISSIVE hides the mismatch and drops the guarantee that STRICT gave you. Do not restart istiod to "refresh" rules, either. Check istioctl proxy-status first, because a STALE proxy is a different fault from a wrong rule.

When is outside help worth it?

When several teams own DestinationRules in one mesh, the matching host patterns are hard to audit by hand, and a mesh-wide STRICT change is a Severity 1 on a Friday. AceMQ's 24/7 Istio support reads the policy set, the log flags and the proxy state together, beside a vendor subscription or on its own. A defect in a vendor's own build stays with that vendor. Send your Istio version, revision and cluster count; AceMQ replies to quote requests within 1 hour.

Sources

Frequently Asked Questions

What is the difference between PeerAuthentication and DestinationRule?

PeerAuthentication sets what mTLS traffic a sidecar accepts. A DestinationRule sets what TLS traffic a sidecar sends. A 503 appears when the two disagree.

Which DestinationRule TLS mode works with STRICT mTLS?

ISTIO_MUTUAL. It makes the client sidecar originate Istio mutual TLS, which is what a STRICT server requires. DISABLE sends plaintext, which a STRICT server rejects.

Do I need a DestinationRule at all if mTLS is on?

Usually not. With auto mTLS on, the sidecar works out whether to send Istio mutual TLS when the DestinationRule sets no TLS mode.

When should I use ISTIO_MUTUAL versus MUTUAL?

Use ISTIO_MUTUAL between workloads in the mesh, where Istio issues the certificates and the other TLS fields stay empty. Use MUTUAL when you supply your own client certificate and private key for a service outside Istio's control.

How can I verify that mTLS is in use between services?

Run istioctl x describe pod to see the DestinationRule TLS mode and whether the pod enforces mTLS. An X-Forwarded-Client-Cert header on a request to a sidecar-backed test service also shows the call used mTLS.

Scott Sternloff

Author

Scott SternloffSenior Enterprise Architect

Senior Enterprise Architect at AceMQ. Writes the technical coverage here: RabbitMQ, Kafka and Redis architecture, clustering and migrations.

Talk to an engineer

Need a hand with Istio?

Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

Free Consultation

Get Expert Eyes on Your Istio Environment

Whether you're troubleshooting a production incident, planning a migration, or want a second opinion on your architecture — our team is ready. No pitch, just answers.

Email Us