liveBook · Manning

Privilege action

As explained in MongoDB 8.0 in Action, Third Edition

A privilege action is a grantable authorization specifying an operation that an identity may perform on an Atlas Stream Processing resource.

A privilege action is a grantable authorization that specifies an operation an identity may perform on a resource. Assigning only required actions supports precise access control and least privilege. section 15.8.2 section 20.3.3

Atlas Stream Processing exposes actions for managing stream processors and connections, including:

  • createStreamProcessor, startStreamProcessor, stopStreamProcessor, and dropStreamProcessor manage a stream processor's lifecycle. section 15.8.2
  • listStreamProcessors, sampleStreamProcessor, streamProcessorStats, and listConnections support discovery, sampling, monitoring, and connection listing. section 15.8.2
  • MongoDB privileges pair actions such as FIND, INSERT, or UPDATE with a database, collection, or other resource. section 20.3.3

Grant different actions on specific resources

Create a custom role with UPDATE access to the routes collection and FIND access to the sales collection: atlas customDbRoles create customReadUpdateRole --privilege 'UPDATE@sample_training.routes' --privilege 'FIND@sample_supplies.sales' This separates write access from read-only access instead of granting broader permissions. section 20.3.3

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Lists stream processor actions and demonstrates resource-scoped custom roles, but does not detail privilege evaluation internals.
Examples
Uses stream processor lifecycle actions and a custom role granting UPDATE on routes and FIND on sales.
What you can do after
Apply it via Atlas customDbRoles commands to create narrowly scoped roles with explicit actions and resource targets.
How it connects
Connects privilege actions with database users, custom roles, inherited roles, resources, and least privilege.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.