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-gatewaybackendRefs to Service
paymentsThe requester. It asks and never approves itself.
parentRefs: attach
namespace: infra
Gateway
shop-gateway
- Says yes
- Platform team
- How
allowedRouteson the Gateway, matched against the labelgateway-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
ReferenceGrantcreated in the payments team's own namespace - Watch out
- Without it, the route reports
ResolvedRefs=Falsewith reasonRefNotPermitted, and requests for that backend get HTTP 500.