Course contentsShow
← Cloud and Infrastructure
Lesson 1622 of 2,98933. Service Mesh FeaturesFree lesson

mTLS Migration Strategies

Techniques for gradually migrating from plaintext to mTLS without service disruption using permissive mode.

mTLS Migration Strategies

What you'll learn: How to safely transition your service mesh from plaintext to encrypted mTLS communication without causing downtime or breaking existing services.

The Challenge of Going Secure

Now that you've enabled mTLS in Istio, you face a practical problem: you can't flip a switch and instantly make every service in your cluster speak mTLS. Some services might not have sidecar proxies yet, legacy systems might not support it, and forcing immediate encryption would break communication across your entire infrastructure.

Permissive Mode: The Safe Migration Path

Service meshes solve this with permissive mode (also called PERMISSIVE mTLS). Think of it like a bilingual translator who can speak both languages fluently—your services will accept both plaintext and mTLS connections during the transition period.

Here's how the migration typically works:

  1. Start in plaintext - All services communicate without encryption
  2. Enable permissive mode - Services accept both plaintext AND mTLS
  3. Roll out sidecars gradually - New connections automatically use mTLS when both sides support it
  4. Monitor the transition - Verify which services still use plaintext
  5. Switch to strict mode - Once everything supports mTLS, enforce encryption-only

The Beauty of Gradual Migration

Permissive mode lets you migrate service-by-service, namespace-by-namespace, or even pod-by-pod. If Service A gets its sidecar before Service B, they can still talk—Service A will "downgrade" to plaintext when talking to B, but use mTLS when talking to other upgraded services. No breakage, no coordination required.

Key Takeaway: Permissive mode enables zero-downtime mTLS migration by allowing services to accept both encrypted and plaintext traffic simultaneously, letting you roll out security incrementally without breaking existing communication paths.