Setup HTTPS / Encrption - AWS ALB (Load balancer) for https connections to code server? #5816
-
HTTPS / Traffic Encrption Can i use an AWS application Load balancer which holds SSL certs and directs traffic (via port 80) to an EC2 where code-server is running, therefor using the SSL certs on the ALB, so it encrypts the code server traffic to the client browser without https warnings? Or should i need to connect directly to the ec2 and use a self signed certs instead? So far i have code server set up and i can run with:
If i change the apache vhost file (ProxyPass etc) that uses the subdomain of the ALB i can:
Does this mean that the above is encrypted traffic? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oof...good question. Calling on @code-asher |
Beta Was this translation helpful? Give feedback.
-
Connecting through the load balancer and disabling directly connecting to the instance is the right way to do it. 👍 This means that traffic is encrypted from your browser to the load balancer (external to your infrastructure) but not from the load balancer to code-server (internal to your infrastructure). This is the most common way to set things up so you should be good to go. Sometimes people will encrypt internal traffic as well but that is usually only because they have to comply with strict security regulations. |
Beta Was this translation helpful? Give feedback.
Connecting through the load balancer and disabling directly connecting to the instance is the right way to do it. 👍
This means that traffic is encrypted from your browser to the load balancer (external to your infrastructure) but not from the load balancer to code-server (internal to your infrastructure).
This is the most common way to set things up so you should be good to go. Sometimes people will encrypt internal traffic as well but that is usually only because they have to comply with strict security regulations.