janhoy commented on pull request #372:
URL: https://github.com/apache/solr/pull/372#issuecomment-953256267


   I discovered that the `ZookeeperReadAPI` clas exposes ZK on 
`/cluster/zk/data`, and it uses `ZK_READ_PERM` in the `@EndPoint` annotation. 
What if someone requests `/cluster/zk/data/security.json`, then they should 
really have `SECURITY_READ_PERM`. But I think with the `@EndPoint` way of 
assigning permissions, there is no way of assigning more fine-grained 
permissions based on path. @noblepaul is it possible to lock down only the 
`/security.json` path by declaring another method with `@EndPoint(path = 
"/cluster/zk/data/security.json"...` and permission `SECURITY_READ_PERM`? Will 
it take precedence over the `path = "/cluster/zk/data/*"` one?


-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to