CDN Compliance: GDPR, HIPAA, and Data Sovereignty
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:
| Metric | Edge Processing | Origin Processing | Improvement |
|---|---|---|---|
| Latency (p50) | 8–15 ms | 120–300 ms | 15–20x faster |
| Cache Hit Ratio | 85–95% | N/A | Reduces origin load |
| TLS Handshake | 1–5 ms (nearby PoP) | 50–150 ms | 10–30x faster |
| Bandwidth Cost | $0.01–0.04/GB | $0.05–0.12/GB | 3–5x cheaper |
| Availability | 99.99% (multi-PoP) | 99.9% (single DC) | 10x fewer outages |
- Data Processing Agreement (DPA) — Signed agreement with the CDN provider defining how they process personal data
- Lawful basis — Legitimate interest (content delivery performance) is typically sufficient for CDN usage
- Data minimization — Only process data necessary for content delivery
EU Data Residency
GDPR doesn't require EU-only processing, but some organizations interpret it conservatively. CDN configurations for EU data residency:
- Cloudflare — Regional Services restricts processing to EU PoPs only. Data Localization Suite available.
- CloudFront — Restrict distribution to EU-only PoPs via price class or geo-restriction
- Akamai — EMEA-only delivery configuration available
Logging and Retention
CDN access logs contain personal data (IP addresses). GDPR requires:
- Defined retention period (delete logs after 30-90 days)
- Purpose limitation (use logs only for security and performance)
- Pseudonymization where possible (hash or truncate IP addresses)
HIPAA Compliance
For healthcare applications handling Protected Health Information (PHI):
- BAA required — CDN provider must sign a Business Associate Agreement
- Encryption in transit — TLS 1.2+ mandatory for all connections
- Access controls — Restrict CDN admin access to authorized personnel
- Audit logging — Maintain logs of all access to PHI
CDN providers with HIPAA BAAs: CloudFront, Azure Front Door, Cloudflare (Enterprise).
PCI DSS
For e-commerce sites processing payment cards:
- CDN must be PCI DSS Level 1 certified
- WAF required for cardholder data environment
- TLS 1.2+ with strong cipher suites
- Regular vulnerability scanning of CDN configuration
Data Sovereignty
Some countries require data to be processed within their borders:
| Country/Region | Requirement | CDN Impact |
|---|---|---|
| China | Data localization for personal data | Requires Chinese CDN partner (see CDN in China) |
| Russia | Data localization law | Require Russian PoPs or local CDN |
| India | Critical data localization (proposed) | May require India-based processing |
| Australia | Privacy Act (APPs) | Require DPA with CDN provider |