You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gateway: the ?ns= redirect's <ns>.<hash32>.<host> needs a certificate no wildcard covers #2784
The public gateway redirects a ?ns= request to a two-level site host, <ns>.<hash32>.<host> (crates/cli/src/commands/gateway/site.rs:80, SiteDomain::site_host). No certificate a deployment can hold covers that form:
A wildcard matches exactly one label, so *.<host> covers <host>'s <hash32>. and <ns>. sites but not <ns>.<hash32>.<host>. Covering it would need one *.<hash32>.<host> certificate per bundle, issued when the bundle is first requested.
Issuing on demand needs a proxy that issues during the TLS handshake (Caddy's on-demand TLS). Even then, any client can mint valid-shaped names and spend the ACME account's order limits.
decdn/devops#176 deploys the gateway behind distro nginx with one <host> + *.<host> certificate (lego, DNS-01). There, the hint redirect's target fails TLS, and a browser following a decdn:<hash>/?ns=<id> link through the gateway gets a certificate error. The other host forms work.
Ask. Keep the hint within one label under <host>, so *.<host> covers it. For example:
<ns>-<hash32>.<host>, or any single-label encoding (a namespace id is decimal and <hash32> is 52 characters, so it fits in 63); or
keep the hint off the host: redirect to <hash32>.<host>/?ns=<id> and carry it in the site's requests some other way.
The hint is "anyone's to write" and buys no allowance bucket (adr/appendix-gateway.md § Payment and allowance), so moving it changes no trust property. The appendix's Hosts table and docker/README.decdn.md § Public gateway (which asks for TLS on decdn.link and *.decdn.link only) would move with it.
Activity
feat(decdn_gateway): deploy the public gateway behind nginx with a wi…
feat(decdn_gateway): deploy the public gateway behind nginx with a wi…