[DOCS-11103] Docs for SERVER-6898: Allow all authenticated users to run listDatabases Created: 08/Dec/17  Updated: 29/Oct/23  Resolved: 04/Jun/18

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

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

Issue Links:
Documented
documents SERVER-6898 Allow all authenticated users to run ... Closed
Participants:
Days since reply: 5 years, 36 weeks, 2 days ago
Epic Link: DOCS: 4.0 Server

 Description   

Documentation Request Summary:

Description

Previously, the listDatabases command would fail "Unauthorized" for any user who does not have the listDatabases privilege.

With this change, all users will get some kind of positive result, however if this may be a partial or even empty set depending on the user's read permissions.

Scope of Changes

Other Docs Affected

Engineering Ticket Description:

EDITED Mar 5 2015
Updating ticket according to discussion in the comments.

  • Make listDatabases command available to all authenticated users
  • return the databases a user has read/write access to
  • A user in possession of the listDatabases action type should as today be able to list all databases

======================
When running in authentication mode, show dbs will only work for a user authenticated on the admin database. However, it makes sense to list all of the available databases to anyone and request the authentication upon db selection.

This is currently not possible. The user needs to either know the DB name to connect to upfront, or connect as admin for show dbs to work. 3drepo.org has a use case for this.

This is related to:
SERVER-4823
SERVER-3181
(a list of names without info will be sufficient, as requested previously, although, in such a case the drivers would need to support querying for that)

MySQL and others will happily list dbs to any user.



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

Author:

{'username': 'jeff-allen-mongo', 'name': 'jeff-allen-mongo', 'email': 'jeffrey.allen@10gen.com'}

Message: DOCS-11103 - Updates to listDatabases command
Branch: master
https://github.com/mongodb/docs/commit/39287b169aa5085af11948766bf6fe2566c4d225

Comment by Jeffrey Allen [ 04/Jun/18 ]

This is RFM: https://github.com/mongodb/docs/pull/3324

Comment by Jeffrey Allen [ 24/May/18 ]

Code review: https://mongodbcr.appspot.com/201720002/

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