yuruguo opened a new pull request #12656:
URL: https://github.com/apache/pulsar/pull/12656


   ### Motivation
   Currently, we can get the internal stats of a topic through 
`bin/pulsar-admin topics stats-internal tn1/ns1/tp1` and also get ledger 
metadata by specifying flag `--metadata`.
   
   However I found that `PulsarAuthorizationProvider` lacks support for topic 
operation `GET_METADATA` when verifying the role's authorization, code as 
below: 
   
https://github.com/apache/pulsar/blob/08a49c06bff4a52d26319a114961aed6cb6c4791/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L1162-L1164
   
https://github.com/apache/pulsar/blob/08a49c06bff4a52d26319a114961aed6cb6c4791/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java#L567-L596
   
   The purpose of this PR is to support role with `lookup` authorization to 
`GET_METADATA`.
   
   
   ### Documentation 
   - [x] `no-need-doc` 
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to