mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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 <adhamkiwan@outlook.com>
This commit is contained in:
1 parent
382169be52
commit
5c690f96bd
1 file changed
+1
-1
@@ -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`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user