From 5c690f96bdb3d776ca13362ff557e6d5d1bc37db Mon Sep 17 00:00:00 2001 From: Adham Kiwan Date: Thu, 19 Nov 2026 15:47:11 +0200 Subject: [PATCH] docs(gateway): stop saying the route-hostname policy admits hostname-less routes Since 1.7 cozystack-route-hostname-policy requires spec.hostnames to be present and non-empty on HTTPRoute, TLSRoute and GRPCRoute in tenant-* namespaces, so the edge-termination section no longer matches the platform. The website builds its Gateway reference page from this README, so the stale sentence would be published as is. Refs: #4938 Assisted-by: LLM Signed-off-by: Adham Kiwan --- packages/extra/gateway/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/extra/gateway/README.md b/packages/extra/gateway/README.md index b72dd223b..37105e5ee 100644 --- a/packages/extra/gateway/README.md +++ b/packages/extra/gateway/README.md @@ -74,7 +74,7 @@ The two halves of that move are not ordered against each other: the wildcard-sec Moving an existing tenant onto such a class also withdraws the operator wildcard from that tenant: its namespace stops counting as a termination point, so the replica described under [existing wildcard Secret](#opt-in--existing-wildcard-secret-operator-provided) is deleted from it on the next reconcile. Its neighbours keep theirs, and so does a namespace that also owns an ingress controller — that one still terminates locally. -Route hostnames still stay inside the tenant apex; on a class that shares one edge address between all Gateways the class controller has to enforce that itself, since the platform's route-hostname policy admits routes that declare no hostnames at all. +Route hostnames still stay inside the tenant apex on such a class: the platform's route-hostname policy (`cozystack-route-hostname-policy`, described under [Security model](#security-model)) does not depend on the Gateway class, and it rejects an `HTTPRoute`, `TLSRoute` or `GRPCRoute` in a `tenant-*` namespace that declares no `spec.hostnames` or names a hostname outside the namespace's apex. The policy is checked on CREATE and UPDATE only, so a route stored without `spec.hostnames` before it was installed is not rejected until it is next updated; audit existing routes in `tenant-*` namespaces before relying on this boundary. The publishing tenant is the one tenant that cannot move itself across that line: the chart refuses to render when its selected class is edge-terminated and `gateway.className` is not, or the reverse. The cluster-wide ACME `ClusterIssuer`s point their HTTP-01 solver at that tenant's Gateway, and whether the solver pins `sectionName: http` is decided from `gateway.className` alone — a tenant's own class choice does not travel on that channel. A publishing tenant that went to an edge class on its own would therefore keep a solver pinned to the `http` listener its Gateway no longer renders, and every HTTP-01 certificate in the cluster would stop issuing with nothing in any status naming the cause. The guard is symmetric because either direction leaves those two decisions derived from different classes. Move `gateway.className` instead; which namespace counts as the publishing tenant comes from `publishing.ingressName`.