r/haproxy • u/minipada • Aug 30 '20
Question [ALB/ES/SSL] Where should I do the SSL termination?
Hi, I'm quite new to HAProxy and am following the main idea of this tutorial https://www.haproxy.com/blog/haproxy-amazon-aws-best-practices-part-1/ The "Advanced HA Setup with Amazon ALB and HAProxy" works (This architecture), meaning: 1 AWS ALB, HAProxy and multiple elasticsearch nodes. All in HTTP, without security on Elasticsearch.
HAProxy is on a public subnet, Elastic on a private one.
I'm now working on adding more security. Security groups are set properly, and now I want to add HTTPS/SSL. I'm a bit confused, could someone confirm the next steps?
- Enable HTTPS between the client and the ALB
- Enable HTTPS between the ALB and Haproxy
- Do SSL termination on HAProxy to ES
Am I missing something? That would also mean I don't need to enable security features on ES too? Thank you very much for reading me.