PierreZ opened a new issue #5495: Add a reverse mapping from role to namespaces
URL: https://github.com/apache/pulsar/issues/5495
 
 
   **Is your feature request related to a problem? Please describe.**
   I'm working on KoP, and I'm currently implementing security on it. I'm 
currently struggling to list all topics according to a *Pulsar role*.
   
   Part of the Kafka handshake is called the Metadata request:
   
   > [[...] Kafka brokers can answer a metadata request that describes the 
current state of the cluster: what topics there are, which partitions those 
topics have, which broker is the leader for those partitions, and the host and 
port information for these 
brokers.](https://kafka.apache.org/protocol#protocol_partitioning)
   
   Most of the client implementation are expecting to retrieve all available 
topics by sending a MetadataRequest with an empty list of topics. In the 
context of authorization, I can't list all topics related to a `Pulsar Role` 
because I can't reverse from a role the associated tenants and namespaces.
   
   **Describe the solution you'd like**
   I would like to add a new internal function that, given a role, is answering 
the full list of associated namespaces.
   
   I think this type of code should be exposed within the admin API but maybe 
there is another(and better!) location.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to