Module 11 · Service Mesh Security — Istio, Linkerd, mTLS

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 27, 2026
3 min read
Read as

Last updated: April 29, 2026

100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module exists. “We added Istio and now we have zero trust.” No, you don’t. Service mesh adds powerful primitives — mTLS, identity-aware authorization — but most installations use ~20% of those primitives. The remaining 80% is where attacks live.

Why this module exists. “We added Istio and now we have zero trust.” No, you don’t. Service mesh adds powerful primitives — mTLS, identity-aware authorization — but most installations use ~20% of those primitives. The remaining 80% is where attacks live.

What service mesh actually does

An Envoy / Linkerd-proxy sidecar intercepts every request entering and leaving each pod. The sidecar handles:

  • mTLS — auto-issues per-pod certificates, encrypts all pod-to-pod traffic, validates the peer’s identity.
  • Authorization — which services can call which other services, on which paths, with which methods.
  • Observability — every request logged with source/dest service identity, timing, status.
  • Traffic management — canary deployment, circuit breaking, retries.

What service mesh doesn’t protect against

  • Application-layer bugs. SQLi, XSS, IDOR — mesh sees authenticated traffic and forwards it.
  • Compromised pods. Once inside a pod, the attacker has the pod’s mesh identity.
  • External (north-south) traffic — mesh secures east-west; ingress is a separate layer.
  • Misconfigured authorization policies — overly permissive policies are the #1 mesh finding.

The single most common Istio bug

Default policy: if no AuthorizationPolicy applies to a workload, all traffic is allowed. Teams roll out service mesh, encrypt traffic, declare victory — and never write authorization policies. Result: any compromised pod can call any service. mTLS gives you encrypted lateral movement.

The fix: deploy a deny-all default, then explicitly allow.

apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
  name: default-deny-all
  namespace: production
spec: {}    # Empty = deny all
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
  name: allow-frontend-to-api
  namespace: production
spec:
  selector: { matchLabels: { app: api } }
  rules:
  - from:
    - source:
        principals: ["cluster.local/ns/production/sa/frontend"]
    to:
    - operation: { methods: ["GET","POST"], paths: ["/v1/*"] }

The PERMISSIVE mTLS gotcha

Istio’s PeerAuthentication can be:

  • STRICT — only mTLS connections accepted
  • PERMISSIVE — mTLS preferred, plaintext also accepted (default)
  • DISABLE — only plaintext

Default = PERMISSIVE. The team thinks they have mTLS; an attacker who compromises any pod can talk to other services in plaintext, bypassing mesh AuthZ that depends on mTLS identity. Always set STRICT.

The JWT validation gap

Service mesh can validate JWTs at the edge — extract claims, route based on them, enforce authorization on them. Most teams don’t configure this. They keep JWT validation in the application code, where it’s inconsistent across services.

Mesh JWT validation is faster (in Envoy) and more consistent (one config, applied everywhere).

Linkerd vs Istio — what changes

Istio Linkerd
Sidecar Envoy (C++) — flexible, complex linkerd2-proxy (Rust) — simpler, lighter
mTLS STRICT/PERMISSIVE/DISABLE Always-on by default
AuthZ AuthorizationPolicy CRDs Server / ServerAuthorization CRDs
Operational complexity High Lower
Default-deny Opt-in Opt-in (also)

Both have the “opt-in deny-all” trap. Both have the “PERMISSIVE-like” defaults somewhere.

Real-world cases

  • Multiple bug-bounty disclosures of misconfigured mesh authorization allowing cross-service data access.
  • Production engineering postmortems describing “we thought mTLS protected us but a compromised microservice still pivoted to others.”

Try this yourself

# Set up Istio with the bookinfo sample
istioctl install --set profile=demo
kubectl label namespace default istio-injection=enabled
kubectl apply -f bookinfo.yaml

# Confirm mTLS is happening
istioctl authn tls-check productpage.default.svc.cluster.local

# Deploy default-deny, see services break
kubectl apply -f deny-all.yaml

# Add allow rules incrementally, watch services come back online
# This is the "right" rollout pattern

# Audit existing AuthZ policies
kubectl get AuthorizationPolicy -A
# Each namespace should have at least one default-deny + explicit allows

Defender’s checklist

  • STRICT mTLS in every namespace.
  • Default-deny AuthZ in every namespace; explicit allow for known callers.
  • Audit logs from Envoy/linkerd2-proxy shipped to SIEM. Every cross-service call is auditable.
  • Mesh JWT validation on user-facing services. Consistent, declarative.
  • Egress control — mesh can also control which external endpoints services can call. Stops compromised pods from reaching attacker C2.
  • Detection: alert on AuthZ denied responses (RBAC-deny). Spikes = scanning attempt.
🧠
Check your understanding

Module Quiz · 6 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants