-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][security] Fix grant all permissions but can't list topic. #15501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix][security] Fix grant all permissions but can't list topic. #15501
Conversation
|
@Technoboy-:Thanks for your contribution. For this PR, do we need to update docs? |
|
@Technoboy- the patch doesn't apply cleanly to 2.10. Would you mind to provide it in another pull? |
Ok. |
(cherry picked from commit 5155b1d)
(cherry picked from commit 5155b1d)
|
@Technoboy- Could you create another PR to migrate this PR to branch-2.8? The Lines 530 to 555 in bb8c945
|
(cherry picked from commit 5155b1d)
Fixes #14191
Master Issue: #14191
Motivation
As #14191 described, users may get confused about the current permission.
First, we only define the below actions in the grant-permission interface:
Though we grant all the actions to some roles like below (
myuseris not admin, only a normal user):But when we list topics under a namespace:
We will get the below error message :
Because when listing topics, we will search all the topics including non-persistent topics which will validate
GET_BUNDLEoperation, but we don't have thisactionin auth action, and it's not good to add toAuthAction, for it's duplicate withNamespaceOperation. So we'd better map this toconsumeoperation to solve the problem.Documentation
no-need-doc(Please explain why)