Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 9fe90f8

Browse files
committed
feedback
1 parent 872ded5 commit 9fe90f8

File tree

2 files changed

+76
-4
lines changed

2 files changed

+76
-4
lines changed

source/includes/minimum-source-privileges.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
9292
]
9393
94-
* - V4.4 Migration (insert footnote)
94+
* - V4.4 Migration
9595
- .. code-block:: javascript
9696

9797
[

source/reference/permissions.txt

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ The Atlas permissions are:
3535
Minimum Privileges
3636
------------------
3737

38+
.. note::
39+
40+
Minimum privileges may change across mongosync versions.
41+
3842
The minimum source privileges are:
3943

4044
.. include:: /includes/minimum-source-privileges.rst
@@ -43,13 +47,81 @@ The minimum destination privileges are:
4347

4448
.. include:: /includes/minimum-destination-privileges.rst
4549

46-
4750
.. _c2c-older-version-permissions:
4851

4952
Pre-6.0 Migrations
5053
------------------
5154

52-
- When migrating from a 4.4 source cluster, you must have
53-
:authrole:`clusterManager` permissions on the source cluster.
55+
- When migrating from a 4.4 source cluster, the source cluster
56+
should either have :authrole:`clusterManager` or the minimum
57+
permissions listed for v4.4.
58+
59+
The minimum source permissions for v4.4 are:
60+
61+
.. list-table::
62+
:header-rows: 1
63+
:stub-columns: 1
64+
:widths: 10 30
65+
66+
* - Sync Type
67+
- Minimum Source Privileges
68+
69+
* - V4.4 Migration
70+
- .. code-block:: javascript
71+
72+
[
73+
{
74+
"resource": { "cluster": true },
75+
"actions": [
76+
"addShard",
77+
"appendOplogNote",
78+
"flushRouterConfig",
79+
"getDefaultRWConcern",
80+
"getShardMap",
81+
"hostInfo",
82+
"listDatabases",
83+
"listShards",
84+
"replSetGetConfig",
85+
"replSetGetStatus",
86+
"serverStatus"
87+
]
88+
},
89+
{
90+
"resource": { "db": "", "collection": "" },
91+
"actions": [
92+
"changeStream",
93+
"collStats",
94+
"find",
95+
"indexStats",
96+
"listCollections",
97+
"listIndexes"
98+
]
99+
},
100+
{
101+
"resource": { "db": "admin", "collection": "system.version" },
102+
"actions": [ "find" ]
103+
},
104+
{
105+
"resource": { "db": "", "collection": "system.js" },
106+
"actions": [ "listCollections", "listIndexes" ]
107+
},
108+
{
109+
"resource": { "db": "config", "collection": "shards" },
110+
"actions": [ "find" ]
111+
},
112+
{
113+
"resource": { "db": "config", "collection": "collections" },
114+
"actions": [ "find" ]
115+
},
116+
{
117+
"resource": { "db": "config", "collection": "version" },
118+
"actions": [ "find" ]
119+
},
120+
{
121+
"resource": { "db": "config", "collection": "settings" },
122+
"actions": [ "find" ]
123+
}
124+
]
54125

55126
- Dual write-blocking and reverse sync are not supported.
127+

0 commit comments

Comments
 (0)