How do you handle certificate and DNS validation for many tenants' custom domains?
AdvancedProductionDNS & Traffic Management in Production
Answer
Customers CNAME their domain to your edge hostname; you issue certificates per domain via ACME HTTP-01 on first request (Caddy on-demand TLS, CloudFront SaaS Manager, Cloudflare for SaaS, AWS ACM with DNS validation CNAMEs given to the customer). Store certs centrally and renew automatically.
Protect against abuse by verifying domain ownership before issuing and rate limiting issuance.
More on DNS & Traffic Management in Production
What TTL values do you choose for production records?BeginnerHow would you design DNS for high availability?AdvancedHow do you manage DNS as code?BeginnerHow do you do a zero-downtime DNS cutover?IntermediateWhy does DNS failover take longer than expected, and how do you make it faster?AdvancedHow do Route 53 health checks work and what are their pitfalls?Intermediate