Interview Prep/Networking/Load Balancers, Proxies & CDNs

How do you secure the origin behind a CDN?

IntermediateConceptLoad Balancers, Proxies & CDNs
Answer

Make the origin unreachable except via the CDN: restrict the security group to the CDN's managed prefix list (CloudFront has an AWS managed prefix list), add a secret custom header the origin checks, use Origin Access Control for S3, and optionally mTLS or a VPC origin.

Otherwise attackers hit the origin IP directly and bypass WAF and caching.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancers, Proxies & CDNs