[DOCS-11617] Docs for SERVER-33999: Implement and test auth checks for a $changeStream against more than a single collection Created: 16/Apr/18  Updated: 29/Oct/23  Resolved: 18/Jun/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.4

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-33999 Implement and test auth checks for a ... Closed
Related
is related to DOCS-11596 Docs for SERVER-34087: Add db.getMong... Closed
Participants:
Days since reply: 5 years, 34 weeks, 2 days ago
Epic Link: DOCS: 4.0 Server

 Description   

Documentation Request Summary:

In order to run a change stream on the whole database, a user needs the "find" and "changeStream" actions on the whole database. i.e. a role with

 {resource: {db: <dbname>, collection: ""}, actions: ["find", "changeStream"]}

Similarly, a user needs those actions on any database, any collection to run a change stream on the whole cluster:

 {resource: {db: "", collection: ""}, actions: ["find", "changeStream"]}

I don't see a DOCS ticket for the original change streams, but for change streams on single collections (db.coll.watch()), you need those actions on the particular collection only.

Scope of changes:

  • update /changeStreams.txt page
  • all three methods
  • reference/privilege-actions since changeStreams was never added in 3.6

Impact to other docs outside of this product:

none but will need to see about driver examples

MVP:

Resources:



 Comments   
Comment by Githook User [ 18/Jun/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11596,DOCS-11525,DOCS-11595,DOCS-11602,DOCS-11617: db.watch() and Mongo.watch() and clusterTime in output, required privilege
Branch: master
https://github.com/mongodb/docs/commit/8558bf3cd716b5aa8b3b225764b9b3c77688c447

Generated at Thu Feb 08 08:03:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.