Skip to content

Conversation

@robholland
Copy link
Contributor

@robholland robholland commented Jan 27, 2026

What changed?

Added a dynamic config variable to force selected API mode for auto-forwarding.

Why?

This helps in use cases where poll requests should not be forwarded when the cluster is not active for this namespace.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Note

Introduces a per-namespace dynamic config to constrain auto-forwarding to a whitelist of APIs, even when the cluster policy is set to forward all APIs.

  • Adds system.forceNamespaceSelectedAPIAutoForwarding and plumbs it through frontend config and interceptor.NewRedirection
  • Extends DC redirection policies (dc_redirection_policy.go) to accept selectedForNS; when all-apis-forwarding is enabled, selectedForNS forces whitelist-only forwarding for that namespace
  • Updates RedirectionPolicyGenerator, policy constructors, and interceptor wiring to pass the new selector
  • Adds/updates unit tests validating override behavior and wiring (dc_redirection_policy_test.go, redirection_test.go, nexus_handler_test.go)

Written by Cursor Bugbot for commit 55e67a6. This will update automatically on new commits. Configure here.

@robholland robholland requested review from a team as code owners January 27, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant