AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

사용자 권한

mongosync 연결 문자열 에 지정된 사용자에게는 소스 및 대상 클러스터에 대한 필수 권한이 있어야 합니다. 권한은 환경과 역 동기화 사용 여부에 따라 달라집니다.

자체 managed 권한은 다음과 같습니다.

For details on server roles, see: Role-Based Access Control in Self-Managed Deployments.

To update user permissions, see: grantRolesToUser.

표에 있는 역할 외에도 사용자 지정 역할을 사용하여 다음 소스 권한을 프로비저닝합니다.

{
"resource": { "db": "local", "collection": "oplog.rs" },
"actions": [ "find", "collStats" ]
}

Atlas 권한은 다음과 같습니다.

동기화 유형
필수 소스 권한
필수 대상 권한

기본값

  • atlasAdmin

반전 또는 다중 반전

For details on Atlas roles, see Atlas User Roles.

To update Atlas user permissions, see: Manage Access to a Project.

참고

최소 권한은 Mongosync 버전에 따라 변경될 수 있습니다.

일부 권한 작업은 사용자 지정 역할을 사용하여 Atlas에서 생성할 수 없으므로 최소 권한은 온프레미스 배포 에만 적용됩니다.

최소 소스 권한은 다음과 같습니다.

동기화 유형
최소 소스 권한

기본값

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"bypassWriteBlockingMode",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus",
"setUserWriteBlockMode"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"changeStream",
"collStats",
"find",
"indexStats",
"listCollections",
"listIndexes"
]
},
{
"resource": { "db": "local", "collection": "oplog.rs" },
"actions": [ "find", "collStats" ]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
},
{
"resource": { "system_buckets": "" },
"actions": [ "listCollections", "listIndexes" ]
}
]

반전

기본값 소스 권한과 기본값 대상 권한의 모든 것.

다중 반전

다음이 추가된 기본값 소스 권한 및 기본값 대상 권한의 모든 것:

[
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
]

V5.0 마이그레이션

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"changeStream",
"collStats",
"find",
"indexStats",
"listCollections",
"listIndexes"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
}
]

최소 대상 권한은 다음과 같습니다.

동기화 유형
최소 대상 권한

기본값

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"bypassDocumentValidation",
"changeStream",
"collMod",
"convertToCapped",
"createCollection",
"createIndex",
"dropCollection",
"dropIndex",
"enableSharding",
"find",
"indexStats",
"insert",
"listCollections",
"listIndexes",
"remove",
"renameCollectionSameDB",
"update",
"bypassWriteBlockingMode",
"setUserWriteBlockMode"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find", "collStats" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "", "collection": "system.views" },
"actions": [ "dropCollection" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find", "update" ]
},
{
"resource": { "db": "config", "collection": "tags" },
"actions": [ "find", "update", "remove" ]
},
{
"resource": { "system_buckets": "" },
"actions": [ "listCollections", "listIndexes" ]
}
]

반전

다음이 추가된 기본값 소스 권한 및 기본값 대상 권한의 모든 것:

[
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
]

다중 반전

다음이 추가된 기본값 소스 권한 및 기본값 대상 권한의 모든 것:

[
{ "resource": { "db": "", "collection": "" }, "actions": [ "dropDatabase" ] }
]

When migrating from a 5.0 source cluster, the source cluster should either have clusterManager or the minimum permissions listed for v5.0.

v5.0 에 대한 최소 소스 권한 다음과 같습니다.

동기화 유형
최소 소스 권한

V5.0 마이그레이션

[
{
"resource": { "cluster": true },
"actions": [
"appendOplogNote",
"getDefaultRWConcern",
"getShardMap",
"hostInfo",
"listDatabases",
"listShards",
"replSetGetConfig",
"replSetGetStatus",
"serverStatus"
]
},
{
"resource": { "db": "", "collection": "" },
"actions": [
"changeStream",
"collStats",
"find",
"indexStats",
"listCollections",
"listIndexes"
]
},
{
"resource": { "db": "admin", "collection": "system.version" },
"actions": [ "find" ]
},
{
"resource": { "db": "", "collection": "system.js" },
"actions": [ "listCollections", "listIndexes" ]
},
{
"resource": { "db": "config", "collection": "shards" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "collections" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "version" },
"actions": [ "find" ]
},
{
"resource": { "db": "config", "collection": "settings" },
"actions": [ "find", "update" ]
}
]