Files
cozystack/packages
tym83 b7821e332c fix(tenant): allow etcd and ingress egress to all ancestors at any depth
Walking prefixes of the parent namespace drops tenant-root at depth
>= 2. Kamaji control planes of tenant clusters in these tenants time
out on etcd.tenant-root.svc:2379. Ingress has the same reachability gap,
including hairpin traffic to public URLs hosted by ancestor ingress.

The set of allowed destinations only grows: every previously allowed
ancestor remains reachable, even when the tenant owns etcd or ingress.
namespace.yaml propagates service owners from the parent or assigns
ownership to the tenant itself, so inherited owners are always ancestors
and need no separate owner logic. tenant-root has no ancestor rules.

Validated with helm unittest packages/apps/tenant (113 tests), an offline
Helm template render, and regression tests that fail with owner-only
rules.

Assisted-by: LLM
Signed-off-by: tym83 <6355522@gmail.com>
2026-11-25 11:56:09 -06:00
..