Details
Assignee
UnassignedUnassignedReporter
Aaditya DubeyAaditya DubeyNeeds Review
YesNeeds QA
YesPriority
Urgent
Details
Details
Assignee
Unassigned
UnassignedReporter
Aaditya Dubey
Aaditya DubeyNeeds Review
Yes
Needs QA
Yes
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created last month
Updated last month
Starting with MongoDB 8.0 you can only run certain commands on shards. If you attempt to connect directly to a shard and run an unsupported command, MongoDB returns an error:
"You are connecting to a sharded cluster improperly by connecting directlyto a shard. Please connect to the cluster via a router (mongos)."
We need to include the directShardOperations role for mongo user starting with mongodb 8.0.
Operator team needs to be aware of this and include the new permission when creating user for monitoring.