[Bug] [broker] Producer and consumer will all be disconnected while using tenant admin to produce/consume #20066
Closed
2 tasks done
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Version
Pulsar 2.9.3
Minimal reproduce step
topicLevelPoliciesEnabled=true
.t1/n1
and set admin roletenant_admin
as the admin of tenantt1
.t1/n1/t1
and use roletenant_admin
to produce/consumer this topic. DO NOT GRANT the permissions oftenant_admin
to the topic/namespace.role1
with produce to topict1/n1/t1
.tenant_admin
will all first disconnect and then reconnect.What did you expect to see?
All producers and consumers should be stable.
What did you see instead?
The producers/consumers of role
tenant_admin
will all first disconnect and then reconnect.Anything else?
According to the logic in
org.apache.pulsar.broker.service.ServerCnx
, all permission check will go toorg.apache.pulsar.broker.authorization.PulsarAuthorizationProvider#allowTopicOperationAsync
, which means the tenant admin should be the super user of all namespace/topic under specific tenant.Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: