TakaHiR07 opened a new pull request, #16792:
URL: https://github.com/apache/pulsar/pull/16792

   ### Motivation
   related to https://github.com/apache/pulsar/issues/16768
   
   
   ### Modifications
   1. no need to grant permission for each partition in 
internalGrantPermissionsOnTopic(), only grant permission on partitionedTopicName
   2. do not revoke permission for each partition in 
internalRevokePermissionsOnTopic(), only revoke permission on 
partitionedTopicName
   3. internalGetPermissionsOnTopic() should get the partitionedTopic permission
   4. PulsarAuthorizationProvider#checkPermission() check permission by 
partitionedTopicName.
   
   If create topic and grant permission before and revoke permission after this 
pr, the permission of topic partition would remain in zk metadata. This do not 
effect the authorization. When do delete topic operation, the remained metadata 
can be cleaned. 
   
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API: no
     - The schema: no
     - The default values of configurations: no
     - The wire protocol: no
     - The rest endpoints: no
     - The admin cli options: no
     - Anything that affects deployment: no
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
     
   - [x] `doc-not-needed` 
   (Please explain why)
     
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)


-- 
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