[fix][security] Fix grant all permissions but can't list topic. - #15501
Merged
Conversation
|
@Technoboy-:Thanks for your contribution. For this PR, do we need to update docs? |
nicoloboschi
approved these changes
May 9, 2022
mattisonchao
approved these changes
May 9, 2022
codelipenghui
approved these changes
May 9, 2022
Contributor
|
@Technoboy- the patch doesn't apply cleanly to 2.10. Would you mind to provide it in another pull? |
Contributor
Author
Ok. |
codelipenghui
pushed a commit
that referenced
this pull request
May 20, 2022
(cherry picked from commit 5155b1d)
mattisonchao
pushed a commit
that referenced
this pull request
Jun 13, 2022
(cherry picked from commit 5155b1d)
Contributor
|
@Technoboy- Could you create another PR to migrate this PR to branch-2.8? The |
1 task
This was referenced Jul 28, 2022
BewareMyPower
pushed a commit
that referenced
this pull request
Jul 28, 2022
(cherry picked from commit 5155b1d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)