[DOCS-11718] Docs for SERVER-32942: mongo shell: for users authorized to certain namespace, make discovery easy Created: 17/May/18 Updated: 29/Oct/23 Resolved: 16/Jun/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.0-rc0 |
| 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: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Days since reply: | 5 years, 34 weeks, 2 days ago | ||||||||||||||||
| Epic Link: | DOCS: 4.0 Server | ||||||||||||||||
| Description |
Description:
Scope of changes:
note: in various places where we get people started with show collections, we don't mention any privileges, as these are more in the getting started mode – e.e.g use show collections to see the collections in the db. Impact to other docs outside of this product:MVP:Resources:Engineering Ticket Description:For users that connect to an authentication-enabled database that are authorized to only certain namespaces, the mongo shell should look up the namespaces the user is authorized to (for example by using the connectionStatus command command) and then, if they exist, show those namespaces to the user in shell helpers like "show dbs" or "show collections". I suspect the fact that this is not baked into the shell's DNA today is a holdover from the fact that the shell was originally built when mongodb did not use auth by default... We should first investigate implementing showCollections properly in the server and backporting it all the way to 3.2. If this doesn't work, we should modify the shell helpers to appear to have the correct behavior. |
| Comments |
| Comment by Githook User [ 18/Jun/18 ] |
|
Author: {'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 16/Jun/18 ] |
|
Author: {'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}Message: |