-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Multi-topic subscription requires tenant admin access #12423
Labels
type/bug
The PR fixed a bug or issue reported a bug
Comments
it's introduced in this patch: #11172 |
4 tasks
hangc0276
pushed a commit
that referenced
this issue
Nov 5, 2021
Fixes #12423 ### Motivation Regex subscription requires to get the topics list of given namespace with GetTopicsOfNamespace request, but this request requires tenant admin permission which will block the regex consumers who only have consume permission. ### Modifications This PR added the consume permission check for GetTopicsOfNamespace, which allows consumers get the topics list with consume permission.
eolivelli
pushed a commit
that referenced
this issue
Nov 9, 2021
Fixes #12423 ### Motivation Regex subscription requires to get the topics list of given namespace with GetTopicsOfNamespace request, but this request requires tenant admin permission which will block the regex consumers who only have consume permission. ### Modifications This PR added the consume permission check for GetTopicsOfNamespace, which allows consumers get the topics list with consume permission. (cherry picked from commit 7e078aa)
codelipenghui
pushed a commit
that referenced
this issue
Nov 18, 2021
Fixes #12423 ### Motivation Regex subscription requires to get the topics list of given namespace with GetTopicsOfNamespace request, but this request requires tenant admin permission which will block the regex consumers who only have consume permission. ### Modifications This PR added the consume permission check for GetTopicsOfNamespace, which allows consumers get the topics list with consume permission. (cherry picked from commit 7e078aa)
eolivelli
pushed a commit
to eolivelli/pulsar
that referenced
this issue
Nov 29, 2021
Fixes apache#12423 ### Motivation Regex subscription requires to get the topics list of given namespace with GetTopicsOfNamespace request, but this request requires tenant admin permission which will block the regex consumers who only have consume permission. ### Modifications This PR added the consume permission check for GetTopicsOfNamespace, which allows consumers get the topics list with consume permission.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Since 2.8.1, using multi-topic subscriptions requires admin access; not just namespace-consume. This was working fine in 2.8.0.
To Reproduce
Steps to reproduce the behaviour:
pulsar tokens create --private-key /data/certs/jwt-private.key --subject test_user > /data/certs/jwt-test_user.token
pulsar-admin tenants create test; pulsar-admin namespaces create test/test
pulsar-admin namespaces grant-permissions --actions produce,consume --role test_user test/test
pulsar-client produce test/test/topic-1 -m msg1 pulsar-client produce test/test/topic-2 -m msg2
pulsar-client --auth-params file:///data/certs/jwt-test_user.token consume --regex 'test/test/topic-.*' -s all -p Earliest -n 0
pulsar-admin tenants update -r test_user test
pulsar-client --auth-params file:///data/certs/jwt-test_user.token consume --regex 'test/test/topic-.*' -s all -n 0
Redacted Output of failure
Expected behavior
Running the same as above with version 2.8.0 , OR with admin rights granted on tenant works just fine.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: