Cluster Administration Roles
clusterMonitor
: Users with this role can view cluster-wide monitoring metrics and statistics, such as the status of replica sets and sharded clusters.
clusterBackup
: This role grants privileges to create backups of the entire cluster, including all databases and collections.clusterRestore
: Users with this role can restore backups to the entire cluster, replacing existing data.clusterAdmin
: This role combines the permissions of the clusterManager, clusterMonitor, clusterBackup, and clusterRestore roles, providing full access to manage and monitor the cluster, create backups, and perform restores.
Configure Role-Based Access Control in MongoDBMongoDB Role-Based Access Control (RBAC)
Authentication and authorization are critical components of database security, ensuring that only authorized users can access and manipulate data. MongoDB, a popular NoSQL database, provides robust authentication mechanisms and role-based access control (RBAC) features to secure data and manage user privileges effectively.
In this article, we will learn about Authentication, Authorization, their Built-In Roles and how to configure RBAC in MongoDB by creating user-defined roles, and modifying access for existing users.