Join our Newsletter — 33% off our NHI Course

What would it take for MongoDB authentication to stay a boundary?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: MongoDB users can be created in one authentication database and then receive roles across others, according to StrongDM. Database access needs recertification against the full entitlement footprint, not the account’s origin context.

Editorial analysis by NHI Mgmt Group, based on content published by StrongDM: “How to Create a User and Add a Role in MongoDB (Safest Way)”.

Key questions

Q: Why does least privilege drift in database environments even when user creation is controlled?

A: Because user creation and privilege assignment are separate decisions.

Q: What signs show that MongoDB permissions are broader than intended?

A: Look for users with roles spread across multiple databases, repeated readWrite grants that support only a narrow workflow, and no current business owner able to justify each entitlement.

Q: How do teams stop MongoDB users from accumulating access across multiple databases?

A: Treat the authentication database as an identifier, not a privilege boundary.

Practitioner guidance

  • Map effective database reach per user Inventory every MongoDB role attached to each user and collapse them into a single entitlement view so reviewers can see cross-database reach rather than isolated grants.
  • Separate authentication from authorisation reviews Treat the authentication database as an identity locator only, then validate the actual databases and permissions a user can touch before approval or recertification.
  • Tighten role bundles for shared database users Replace broad read or readWrite bundles with purpose-specific role sets for reporting, products, sales, and accounts so access matches the minimum operational need.

Bottom line: MongoDB’s identity model separates account origin from effective privilege, which is why least privilege can drift even when user creation is orderly.

Glossary terms: Least Privilege, Authentication Database, Role Scope, Entitlement Spread

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 week ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20712
 

MongoDB role drift is a least-privilege problem, not a user-creation problem: The article shows that the authentication database names the user, but roles define the actual security boundary. That means the governance risk sits in entitlement growth over time, not in the initial account object. For IAM and PAM teams, the right question is whether role assignment remains narrower than the business need as databases and use cases multiply.

A question worth separating out:

Q: Should IAM teams treat MongoDB authentication databases as an access boundary?

A: No. The authentication database identifies the user, but the roles determine what that user can do elsewhere. IAM teams should govern the full permission set, not the database where the account was created, because least privilege is enforced through role scope and review discipline.

👉 Read our full editorial: MongoDB role-based access shows why least privilege still drifts



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.