Hello! I’m wondering if I should implement HTTPS support for my internal requests. For example, I have an application load balancer located behind a CloudFront distribution. I have a feeling that security-wise it’s a good pattern to use HTTPS only everywhere, probably it’s the best practice. But I’m not sure and cannot really see the benefits of using HTTPS internally. But the downside is quite obvious - the overhead with maintaining certificates. What are your thoughts on this? And what approach do you use? Thanks in advance everyone for sharing your thoughts!
Yes, it is a security driven decision. As such, it depends from the threat and risk analysis, practically: do you care if someone spoofs or alter the traffic? how high is the risk that happens?
You don’t need a full analysis to realize that (i) no it is not important and (ii) yes you have other higher risks to think of instead of internal encryption.
ISO27001 defines controls to encrypt all data at rest and in transit, including internal https. We did not do it, because if that would happen, we would have a much bigger problem somewhere else. Better to invest resources in other risks mitigations.
I also don’t think it is yet best practice to encrypt internal traffic in a cloud environment for common applications.
But of course, due diligence would be to document your decision and inform the management accordingly.
Just found a discussion related to this topic, it actually explains more-less what I was searching for…
you need to exercise judgement. if you can prove to yourself that nobody you care about can read the traffic or alter the traffic, http suffices. but sometimes it is hard to tell. here is an example: your organization has a network guy who optimizes network layouts, identifies bottlenecks, etc. for diagnostic reasons, you grant him access to monitor the traffic in your vpc. boom, now he an access sensitive information like passwords and personal data. not only that, but if a dump file is saved, now that file needs to be protected securely. will you remember five years down the line that this is a no no? will everyone in the company making such decisions know this is a no no? so making sure nobody have access to your traffic might not be so easy. this has to be measured against the extra lag and the extra cert maintenance.
Thank you for giving some examples. I see now that HTTPS everywhere is considered a best practice. I will implement it also for our services, it’s not that much hassle anyway.
Note that there’s an enormous difference between what you ask and what you linked above. So much that nearly none of the reasoning for one would apply to the other.
The link above discusses traffic over the public internet, between CloudFront and origin locations. Your question asks about “internal” traffic, presumably in a local, private network.
The threats are very different.
I think CloudFront → ALB isn’t internal though, that goes through the public internet and can be sniffed/MITM-ed (correct me if I’m wrong here). That’s why to restrict ALB to only traffic coming from Cloudfront, we need to put a secret in the header and we also need to encrypt the connection to protect the secret (see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/restrict-access-to-load-balancer.html#restrict-alb-improve-security).
Anything beyond the ALB would be “internal” because the traffic is within the VPC. You may have compliance requirements that require you to encrypt every hop, but AWS claims that it’s not possible to sniff or MITM traffic within a VPC, see: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-endtoend.html
So, it depends how much you trust the claims from AWS about their VPC security.
Very good info. I just wanted to add that, regarding “not possible to sniff or MITM inside of AWS”, there’s a caveat - it’s possible to use a GWLB to have all traffic flow to a specific ENI. It would require specific setup, and all the permissions to enable that, but may be relevant to audit and have controls around that.
OP specifically mentioned Cloudfront → LB in their post.
Typically, for a distributed system, I’d recommend mTLS.
As others mentioned: Cloud Front traffic to ALB is external and end to end TLS is always a good practice. At least make sure you ALB uses HTTPS listeners.