CloudFront distributions should encrypt traffic to custom origins

Description

This check verifies if Amazon CloudFront distributions are securing traffic to custom origins. Failure for this control occurs when a CloudFront distribution permits the ‘http-only’ origin protocol policy. Additionally, failure is also flagged if the distribution’s origin protocol policy is ‘match-viewer’ while the viewer protocol policy is set to ‘allow-all’.

Using HTTPS (TLS) can enhance security by safeguarding against eavesdropping or manipulation of network traffic. It is advisable to only allow encrypted connections through HTTPS (TLS).

Remediation

For instructions on how to mandate encryption for communication between CloudFront and your custom origin by updating the Origin Protocol Policy, refer to Requiring HTTPS for communication between CloudFront and your custom origin in the Amazon CloudFront Developer Guide.