[SERVER-72667] Add authorization checks for cluster checkMetadataConsistency command Created: 10/Jan/23 Updated: 29/Oct/23 Resolved: 03/Mar/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Pol Pinol | Assignee: | Pol Pinol |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Sprint: | Sharding EMEA 2023-03-06 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Investigate and add the authorization checks for the new checkMetadataConsistency command.
The goal of this ticket is to add a new specific action type "checkMetadataConsistency" and include it in the following built-in roles:
Additionally, we should add tests to ensure that users without this privilege are not authorized to run the new command.
To sum up, as we have 3 level modes to run the command, we will have 3 different levels of privileges: Cluster level mode:
Database level mode:
Collection level mode:
|
| Comments |
| Comment by Githook User [ 02/Mar/23 ] |
|
Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}Message: |