To my understanding, when someone makes a request to my site the connection looks like this:
Client <—> Cloudflare <—> Web server (hosted on EC2)
Between the client and Cloudflare, I’m confident that the connection is strongly encrypted, but Cloudflare and the web server are speaking to one another using unencrypted HTTP 1.1 (since that’s the only protocol my server understands).
Is it safe to send sensitive data over this type of connection, or is there a risk of a man-in-the-middle attack where someone intercepts packets passing between Cloudflare and the web server?
To ensure secure communication, it is crucial to implement HTTPS between Cloudflare and your web server. Without encryption, data sent between them could be intercepted, posing a potential security risk. By enabling SSL/TLS on your EC2 instance, you can establish end-to-end encryption, protecting sensitive data throughout the connection. This measure significantly reduces the risk of man-in-the-middle attacks.