Skip to content

DOCSP-2557: add changeStream action to read role #3431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/reference/built-in-roles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Every database includes the following client roles:
The role provides read access by granting the following :ref:`actions
<security-user-actions>`:

- :authaction:`changeStream`
- :authaction:`collStats`
- :authaction:`dbHash`
- :authaction:`dbStats`
Expand Down
3 changes: 3 additions & 0 deletions source/reference/method/Mongo.watch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ have a :ref:`role <roles>` that grants the following :ref:`privilege

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

The built-in :authrole:`read` role provides the appropriate
privileges.

Example
-------

Expand Down
4 changes: 4 additions & 0 deletions source/reference/method/db.collection.watch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ have a :ref:`role <roles>` that grants the following :ref:`privilege

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


The built-in :authrole:`read` role provides the appropriate
privileges.

Examples
--------

Expand Down
3 changes: 3 additions & 0 deletions source/reference/method/db.watch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ have a :ref:`role <roles>` that grants the following :ref:`privilege
.. code-block:: javascript

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

The built-in :authrole:`read` role provides the appropriate
privileges.

Example
-------
Expand Down