nodemethod
KubernetesAdvanced

Service mesh with strict mutual TLS

Every service-to-service call is encrypted and authenticated by workload identity, with per-call telemetry.

A service mesh such as Istio or Linkerd places a proxy next to every workload (or uses a node-level data plane). Proxies issue each workload a certificate tied to its service account, encrypt all traffic between them, and enforce which identities may call which services. Because every request crosses a proxy, the mesh also produces consistent latency, error and traffic metrics for every hop.

MESH: STRICT MTLSmTLSmTLSmTLSmTLSLBIngress gatewayTLS from clientsAPPcartsa: cartAPPpaymentssa: paymentsAPPinventorysa: inventoryDBledgersa: ledgerNMControl planeissues certs
traffictunnel / replicationblocked

When to use it

  • Many microservices owned by different teams
  • Zero-trust requirements inside the cluster
  • Need for retries, timeouts and canary routing without code changes

When to avoid it

  • A handful of services where network policies and TLS in the app are enough
  • Teams without capacity to operate the mesh control plane

How traffic flows

  1. The control plane issues each workload a short-lived certificate for its service account identity.
  2. Proxies on both ends perform a mutual TLS handshake; plaintext is rejected when the mode is STRICT.
  3. Authorization policies allow calls by identity: only cart may call inventory, only payments may call ledger.
  4. Every proxy exports request metrics and trace spans, so each hop is observable without code changes.

Configuration examples

apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
  name: default
  namespace: istio-system      # mesh-wide
spec:
  mtls:
    mode: STRICT

Examples are starting points. Review provider limits, names and versions for your environment before applying.

What to monitor

SignalWhy it matters
Certificate expiry and rotation errorsFailed rotation breaks every connection for that workload at once.
Requests denied by authorization policyNew callers that were never allowed show up here first.
Per-route latency percentiles and error ratesThe golden signals for every hop, from the proxies.
Retry volumeRetries hide failures and can multiply load during an incident.

Common failure modes

PERMISSIVE mode left on

Plaintext traffic is still accepted, so mTLS is not enforced.

Sentinel reports namespaces where plaintext connections were accepted.

Retry storms

Every layer retries, multiplying load on a struggling service.

Lens shows retry volume rising faster than request volume and points at the route configuration.

Checklist

0 of 5 done
Was this pattern useful?

Run this pattern with NodeMethod watching it.

NodeMethod is onboarding early-access teams now. Tell us about your environment and we will be in touch.

esc
↑↓ to move↵ to open