1. Home
  2. Security Hardening
  3. CIS MongoDB 3.2 Database L2 V1.0.0
  4. Ensure that each role for each MongoDB database is needed and grants only the necessary privileges

Ensure that each role for each MongoDB database is needed and grants only the necessary privileges

Details

Reviewing all roles periodically and eliminating unneeded roles as well as unneeded privileges from necessary roles helps minimize the privileges that each user has.

Rationale:

Although role-based access control (RBAC) has many advantages for regulating access to resources, over time some roles may no longer be needed, and some roles may grant privileges that are no longer needed.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

To revoke specified privileges from the user-defined role on the database where the command is run. The revokePrivilegesFromRole command has the following syntax:
{
revokePrivilegesFromRole: ““,
privileges:
[
{ resource: { }, actions: [ “, … ] },

],
}

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system MongoDB.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles