kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

RBAC: Make it possible to use regex for values

Open dimashenkov opened this issue 1 year ago • 2 comments

Issue submitter TODO list

  • [X] I've searched for an already existing issues here
  • [X] I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?

No response

Describe the feature you're interested in

RBAC to support regex values, so you could use "*@domain.tld" emails to match the roles without having to populate the users with roles

Describe alternatives you've considered

No response

Version you're running

27c5e61

Additional context

No response

dimashenkov avatar Apr 16 '24 11:04 dimashenkov

Hi dimashenkov! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

github-actions[bot] avatar Apr 16 '24 11:04 github-actions[bot]

TODO:

  • OauthAuthorityExtractor: consider subject.getValue() being regex values
  • Consider building patterns for subject values the same way they're built for Permission#compiledValuePattern

Haarolean avatar Apr 19 '24 10:04 Haarolean

Hello @Haarolean, this issue is already assigned but i would like to propose a PR as we're waiting this feature. How to get authorized to push a new branch ?

francoisvandenplas avatar Nov 06 '24 09:11 francoisvandenplas

@francoisvandenplas you can fork the repo and raise a PR

Haarolean avatar Nov 06 '24 12:11 Haarolean

OK should other extractors support regex values ?

francoisvandenplas avatar Nov 06 '24 13:11 francoisvandenplas

needs docs update

Haarolean avatar Mar 20 '25 14:03 Haarolean