- Newest
- Most votes
- Most comments
Amazon CloudFront SaaS Manager provides capabilities for multi-tenant architectures, but the content-based routing scenario you're describing would indeed require TLS termination at CloudFront.
When implementing data-driven routing with CloudFront, the service needs to inspect the request content (such as headers, cookies, or JWT tokens) to make routing decisions. This inspection requires TLS termination at the CloudFront edge. Lambda@Edge functions, which are commonly used for this purpose, can only access the request content after CloudFront has terminated the TLS connection.
CloudFront SaaS Manager allows you to create multi-tenant distributions that define shared settings across multiple domains, with distribution tenants inheriting configurations while maintaining tenant-specific customizations. However, even with this approach, CloudFront needs to decrypt the traffic to perform content-based routing.
If maintaining end-to-end encryption without TLS termination at CloudFront is an absolute requirement, you might need to consider alternative approaches:
- Continue using subdomain-based routing where each tenant has a unique hostname
- Use a different service architecture where routing decisions are made after the initial TLS termination point
It's worth noting that CloudFront does re-encrypt the traffic when forwarding it to your origin, so the data remains encrypted in transit throughout the entire journey. While this isn't technically end-to-end encryption in the strictest sense, it does maintain security throughout the request path.
Sources
Scale your SaaS application at the edge with the new Amazon CloudFront SaaS Manager | Networking & Content Delivery
Tenant routing strategies for SaaS applications on AWS | Networking & Content Delivery
Reduce your operational overhead today with Amazon CloudFront SaaS Manager | AWS News Blog
Understand how multi-tenant distributions work - Amazon CloudFront
Relevant content
- asked 3 years ago
- asked a year ago
- asked 4 years ago
