Currently, commands for manipulating sharding information about a collection (shardCollection, moveChunk, splitChunk, etc.) require privileges on the cluster resource. This means that you can only grant users the ability to shard all collections or none, there's no way to say you can shard collections in this db but not collections in this other db. If we change the access control checks in these commands to use the namespace as the target, this should be easy to fix.
Change chunk manipulation commands to require privileges on the sharded collection rather than the cluster resource
- Assignee:
-
Spencer Brody (Inactive)
- Reporter:
-
Spencer Brody (Inactive)
- Votes:
-
0 Vote for this issue - Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: