massakam opened a new pull request #2046: Enable authentication and 
authorization for some admin APIs
URL: https://github.com/apache/incubator-pulsar/pull/2046
 
 
   ### Motivation
   
   Currently, it seems to that users who are not admin can send POST requests 
to the REST APIs for configuring retention policy and persistence policies.
   ```
   POST /admin/namespaces/{tenant}/{namespace}/retention
   POST /admin/persistent/{tenant}/{namespace}/persistence
   ```
   I think that only administrators should be able to change these settings.
   
   ### Modifications
   
   Fixed these APIs to authenticate and authorize users by calling the 
`validateAdminAccessForTenant()` method.
   
   ### Result
   
   Only the administrators of the tenant will be able to change these settings.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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