Skip to content

Conversation

@lukzhang
Copy link

@lukzhang lukzhang commented Nov 6, 2025

This PR adds logic to enforce Gateway allowedRoutes.namespaces constraints during HTTPRoute reconciliation.

  • Fetches the parent Gateway
  • Evaluates whether the HTTPRoute's namespace is permitted by the Gateway's allowedRoutes policy
  • Updates route status with Accepted=False if the namespace is not allowed

This prevents unintended provisioning of resources from unauthorized namespaces and aligns with Gateway API spec.

@rlymbur
Copy link
Contributor

rlymbur commented Nov 28, 2025

I see a similar change has been made on #845 that is more exhaustive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants