@@ -35,6 +35,10 @@ The Atlas permissions are:
35
35
Minimum Privileges
36
36
------------------
37
37
38
+ .. note::
39
+
40
+ Minimum privileges may change across mongosync versions.
41
+
38
42
The minimum source privileges are:
39
43
40
44
.. include:: /includes/minimum-source-privileges.rst
@@ -43,13 +47,81 @@ The minimum destination privileges are:
43
47
44
48
.. include:: /includes/minimum-destination-privileges.rst
45
49
46
-
47
50
.. _c2c-older-version-permissions:
48
51
49
52
Pre-6.0 Migrations
50
53
------------------
51
54
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
+ ]
54
125
55
126
- Dual write-blocking and reverse sync are not supported.
127
+
0 commit comments