-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Security
-
None
-
Execution Team 2021-05-03, Execution Team 2021-05-17, Execution Team 2021-05-31
These roles should give enough permissions to backup and restore time-series collections including any secondary indexes defined on them.
The relevant privileges for the backup and restore roles are defined in the code here:
- backup - https://github.com/mongodb/mongo/blob/960f5deb14520af3076c9164fbf8b3cbcca0560f/src/mongo/db/auth/builtin_roles.cpp#L492
- restore - https://github.com/mongodb/mongo/blob/960f5deb14520af3076c9164fbf8b3cbcca0560f/src/mongo/db/auth/builtin_roles.cpp#L575
The time-series collection is considered a normal resource in the access control system. However, this does not apply to the buckets collection because it resides in the system.buckets namespace.
The AuthorizationSessionImpl::buildResourceSearchList function is responsible for checking whether an action is allowed to proceed on a resource.
- is related to
-
TOOLS-2857 Dump timeseries collections
- Closed
-
TOOLS-2859 Restore timeseries collections
- Closed
- links to