Best Recommendation for level where to terminate the TLS. #13687
Replies: 1 comment
-
|
Both options are valid — here's a breakdown to help you decide: Option A: Terminate TLS at the Load Balancer
Option B: Terminate TLS at the APISIX Data Plane (recommended for your use case) Since you explicitly need data to stay encrypted end-to-end and you're already running in decoupled mode with etcd, this is the stronger fit:
Hybrid option (also common): Use a TCP/L4 load balancer with TLS passthrough to distribute traffic to your APISIX data planes, which then perform the actual TLS termination [6]. This gives you both HA load distribution and end-to-end encryption. One caveat: you may need Proxy Protocol v2 on the LB to preserve client IPs, and there's a known quirk where My recommendation: Given your requirement that data must stay encrypted and you already have etcd in place, terminate TLS at the APISIX data plane level with a TCP passthrough load balancer in front. This ensures encryption all the way to the gateway while still leveraging your LB for traffic distribution and health checks. Store certs via the Admin API (control plane) and etcd will handle synchronization to both data planes automatically. To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I have deployed APISIX gateway in decouple mode. I have one control plane to manage the admin api and two data plane to mange the client traffic and a Load Balancer to distribute client traffic to data planes. ETCD cluster to store the data. I need the requests in https so the data must be stayed in encrypted. I want to terminate the tls where I place the certs and keys.
So I am thinking to terminate tls at the Load Balancer level or data plane (gateway) level (storing certs and keys in etcd so all the data plane shares the same).
@dosu
Beta Was this translation helpful? Give feedback.
All reactions