-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-1960: updates mongoexport, mongoimport, mongofiles with auth reqs #2223
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
To backup all the databases in a cluster via :program:`mongodump`, you | ||
To back up all the databases in a cluster via :program:`mongodump`, you | ||
should have the :authrole:`backup` role. The :authrole:`backup` role provides | ||
the required privileges for backing up all databases. The role confers no | ||
additional access, in keeping with the policy of :term:`least privilege`. | ||
|
||
To backup a given database, you must have ``read`` access on the database. | ||
To back up a given database, you must have ``read`` access on the database. | ||
Several roles provide this access, including the :authrole:`backup` role. | ||
|
||
.. include:: /includes/fact-required-access-for-backup-profiling.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
.. versionchanged:: 2.6 | ||
|
||
To backup users and :ref:`user-defined roles <user-defined-roles>` for a | ||
To back up users and :ref:`user-defined roles <user-defined-roles>` for a | ||
given database, you must have access to the ``admin`` database. MongoDB | ||
stores the user data and role definitions for all databases in the | ||
``admin`` database. | ||
|
||
Specifically, to backup a given database's users, you must have the | ||
Specifically, to back up a given database's users, you must have the | ||
:authaction:`find` :ref:`action <security-user-actions>` on the ``admin`` | ||
database's :data:`admin.system.users` collection. The :authrole:`backup` | ||
and :authrole:`userAdminAnyDatabase` roles both provide this privilege. | ||
|
||
To backup the user-defined roles on a database, you must have the | ||
To back up the user-defined roles on a database, you must have the | ||
:authaction:`find` action on the ``admin`` database's | ||
:data:`admin.system.roles` collection. Both the :authrole:`backup` and | ||
:authrole:`userAdminAnyDatabase` roles provide this privilege. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
To restore collection data to a database with authentication enabled, | ||
the connecting user must possess the appropriate user roles. | ||
|
||
To restore a single database, the connecting user must possess the :authrole:`readWrite` | ||
role for that database. Alternatively, the | ||
:authrole:`readWriteAnyDatabase` provides access to restore any database. | ||
The :authrole:`restore` role also provides the requisite permissions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these quotation marks making a point? they're not necessary to cast to long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Au contraire. Apparently if you don't include the quotes, it interprets it at a float, and sadness ensues. See: DOCS-4568.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. I stand corrected.