Skip to content

Conversation

@Technoboy-
Copy link
Contributor

@Technoboy- Technoboy- commented Mar 10, 2022

Fixes #14191

Motivation

We have some big issues with the permission part. We only have the permission with doc mentioned. But if user do it according to the doc, they will face the same issue that #14191 described. We don't have GET_BUNDLE in the grant interface but given the prompt message to the user. And currently, only the admin role could have the permission.
This pr is not solving the permission issue but fixing the prompt message first, not giving 500 error to the user. Then I open an issue #14639 to discuss refactoring the permission part.

Modification

  • Return 403 to the user when permission is denied.

Documentation

  • no-need-doc

@Technoboy- Technoboy- self-assigned this Mar 10, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 10, 2022
Copy link
Member

@RobertIndie RobertIndie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Do we need to apply these changes to v1 API as well?

@Technoboy-
Copy link
Contributor Author

LGTM. Do we need to apply these changes to v1 API as well?

Yes, thanks. Updated for v1.

Beside, We may not update non-persistent topics in v1 for a long time, there is an NPE in the getList and getListFromBundle .

@codelipenghui codelipenghui modified the milestones: 2.10.0, 2.11.0 Mar 12, 2022
@codelipenghui codelipenghui merged commit ca6e824 into apache:master Mar 12, 2022
codelipenghui pushed a commit that referenced this pull request Apr 19, 2022
… GET_BUDNLE permission (#14638)

Fixes #14191

### Motivation
We have some big issues with the permission part. We only have the permission with [doc](https://pulsar.apache.org/docs/en/admin-api-permissions/) mentioned. But if user do it according to the doc, they will face the same issue that #14191 described. We don't have GET_BUNDLE in the grant interface but given the prompt message to the user. And currently, only the admin role could have the permission.
This pr is not solving the permission issue but fixing the prompt message first, not giving 500 error to the user. Then I open an issue #14639 to discuss refactoring the permission part.

### Modification

- Return 403 to the user when permission is denied.

(cherry picked from commit ca6e824)
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
… GET_BUDNLE permission (apache#14638)

Fixes apache#14191

### Motivation
We have some big issues with the permission part. We only have the permission with [doc](https://pulsar.apache.org/docs/en/admin-api-permissions/) mentioned. But if user do it according to the doc, they will face the same issue that apache#14191 described. We don't have GET_BUNDLE in the grant interface but given the prompt message to the user. And currently, only the admin role could have the permission. 
This pr is not solving the permission issue but fixing the prompt message first, not giving 500 error to the user. Then I open an issue apache#14639 to discuss refactoring the permission part.

### Modification

- Return 403 to the user when permission is denied.
mattisonchao pushed a commit that referenced this pull request Jun 13, 2022
… GET_BUDNLE permission (#14638)

Fixes #14191

### Motivation
We have some big issues with the permission part. We only have the permission with [doc](https://pulsar.apache.org/docs/en/admin-api-permissions/) mentioned. But if user do it according to the doc, they will face the same issue that #14191 described. We don't have GET_BUNDLE in the grant interface but given the prompt message to the user. And currently, only the admin role could have the permission.
This pr is not solving the permission issue but fixing the prompt message first, not giving 500 error to the user. Then I open an issue #14639 to discuss refactoring the permission part.

### Modification

- Return 403 to the user when permission is denied.

(cherry picked from commit ca6e824)
@BewareMyPower
Copy link
Contributor

Add the release/2.8.4 label since it's relied by #15501

BewareMyPower pushed a commit that referenced this pull request Jul 28, 2022
… GET_BUDNLE permission (#14638)

Fixes #14191

### Motivation
We have some big issues with the permission part. We only have the permission with [doc](https://pulsar.apache.org/docs/en/admin-api-permissions/) mentioned. But if user do it according to the doc, they will face the same issue that #14191 described. We don't have GET_BUNDLE in the grant interface but given the prompt message to the user. And currently, only the admin role could have the permission.
This pr is not solving the permission issue but fixing the prompt message first, not giving 500 error to the user. Then I open an issue #14639 to discuss refactoring the permission part.

### Modification

- Return 403 to the user when permission is denied.

(cherry picked from commit ca6e824)
@BewareMyPower BewareMyPower added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jul 28, 2022
@Technoboy- Technoboy- deleted the fix-14191 branch August 10, 2022 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NonPersistentTopics - [myuser] Failed to get list of topics under namespace public/default

5 participants