CDN Compliance: GDPR, HIPAA, and Data Sovereignty

· James Thornton · 4 min read

CDN and Data Privacy

CDNs process user data at edge servers worldwide. Every HTTP request contains user data: IP addresses, cookies, headers, and sometimes request bodies. This makes CDN configuration a compliance concern for GDPR, HIPAA, PCI DSS, and data sovereignty regulations. For foundational context, read CDN Monitoring and Observability: Metrics That Matter — FlyFish NWA.

GDPR Compliance

CDN as Data Processor

Under GDPR, your CDN provider is a data processor. You need:

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages
CDN Network Overview — Understanding the delivery architectureCDN Network Overview — Understanding the delivery architecture CDN Network Topology — Content Delivery Flow U User A Tokyo U User B London U User C New York Edge Server Tokyo PoP Edge Server London PoP Edge Server New York PoP Mid-Tier Cache Origin Shield Origin Server Your Server Request Cache Miss Fetch Cache Hit → Instant Response
Figure 1: CDN Network Overview — Understanding the delivery architecture

EU Data Residency

GDPR doesn't require EU-only processing, but some organizations interpret it conservatively. CDN configurations for EU data residency:

Logging and Retention

CDN access logs contain personal data (IP addresses). GDPR requires:

HIPAA Compliance

For healthcare applications handling Protected Health Information (PHI):

CDN providers with HIPAA BAAs: CloudFront, Azure Front Door, Cloudflare (Enterprise).

PCI DSS

For e-commerce sites processing payment cards:

Request Lifecycle — How content moves through the CDNRequest Lifecycle — How content moves through the CDN CDN Request Flow — From Browser to Edge CDN Request Lifecycle Step 1 DNS Lookup Step 2 TCP Connect Step 3 TLS Handshake Step 4 Edge Server Step 5 Cache Check Step 6 Response Cache HIT → 5ms response Cache MISS → Fetch origin 0ms ~50ms (cache hit) ~200ms (cache miss)
Figure 2: Request Lifecycle — How content moves through the CDN

Data Sovereignty

Some countries require data to be processed within their borders:

Country/RegionRequirementCDN Impact
ChinaData localization for personal dataRequires Chinese CDN partner (see CDN in China)
RussiaData localization lawRequire Russian PoPs or local CDN
IndiaCritical data localization (proposed)May require India-based processing
AustraliaPrivacy Act (APPs)Require DPA with CDN provider

External References

References & Standards: HTTP/2 specification · RFC 7234