Networkingssl terminationssl offloadingtls offloading

TLS termination

Definition

TLS termination is ending the client's TLS session at an intermediary such as a reverse proxy or load balancer, which decrypts the traffic and forwards it to backends in plain text or over a new TLS connection.

In practice

Terminating at the edge keeps certificates and private keys in one place, lets the proxy inspect HTTP for routing, caching and rate limiting, and spares backends the handshake CPU cost. Termination close to users (at a CDN edge) also shortens the handshake round trips.

Traffic after the terminator is unencrypted unless you re-encrypt, which zero-trust networks require, often with mTLS from a service mesh. Backends lose the client's connection details, so the proxy must pass them in headers such as X-Forwarded-For and X-Forwarded-Proto, and backends must trust those headers only from the proxy.

Example

An Nginx edge holds the certificate for shop.example.com, decrypts requests, adds X-Forwarded-Proto: https and forwards them over mTLS to the application pods.