Cross-namespace access

Two namespace borders, two owners

One shop route crosses two namespace borders, and a different owner says yes at each. The owner of the target decides, never the requester.

namespace: shop
HTTPRoute
shop team
parentRefs to Gateway shop-gateway
backendRefs to Service payments

The requester. It asks and never approves itself.

parentRefs: attach
namespace: infra
Gateway
shop-gateway
Says yes
Platform team
How
allowedRoutes on the Gateway, matched against the label gateway-access: "true" on the shop namespace
Watch out
A cluster administrator sets that label. If the shop team can edit its own namespace labels, it lets itself in.
backendRefs: reference
another team's namespace
ReferenceGrant
the opt-in
Service
payments
Says yes
Payments team
How
A ReferenceGrant created in the payments team's own namespace
Watch out
Without it, the route reports ResolvedRefs=False with reason RefNotPermitted, and requests for that backend get HTTP 500.