Skip to content

refactor(wolf-rbac): separate route and consumer settings - #13929

Open
shreemaan-abhishek wants to merge 3 commits into
apache:masterfrom
shreemaan-abhishek:refactor/wolf-rbac-config-scope
Open

refactor(wolf-rbac): separate route and consumer settings#13929
shreemaan-abhishek wants to merge 3 commits into
apache:masterfrom
shreemaan-abhishek:refactor/wolf-rbac-config-scope

Conversation

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Description

wolf-rbac currently mixes Wolf connection/output settings with Consumer identity. This makes Route behavior depend on Consumer configuration that is unavailable before a Consumer is matched.

This PR:

  • keeps only required appid in Consumer configuration
  • moves server, header_prefix, and ssl_verify to Route/Service configuration
  • clears the Route header namespace before authentication and sets it only after Wolf succeeds
  • updates public API routes and documentation

This is a breaking schema change.

Migration

Before upgrading, move server, header_prefix, and ssl_verify from each Consumer to every Route/Service using wolf-rbac; leave only appid on the Consumer. If Consumers used different values on one Route, split or standardize those settings. Routes exposing Wolf APIs must configure both public-api and wolf-rbac.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (this is an intentional breaking schema cleanup)

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.

1 participant