<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:03:29 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-11718] Docs for SERVER-32942: mongo shell: for users authorized to certain namespace, make discovery easy</title>
                <link>https://jira.mongodb.org/browse/DOCS-11718</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description%3A&quot;&gt;&lt;/a&gt;Description: &lt;/h2&gt;

&lt;ul&gt;
	&lt;li&gt;New option &quot;authorizedCollections&quot; to listCollections command.
	&lt;ul&gt;
		&lt;li&gt;If it is set to true, and &quot;nameOnly&quot; is true, the command will return all collections the user is authorized for, if and only if they exist in the database. A user is &quot;authorized for&quot; a collection if they possess a privilege which applies to the collection. IE, if the user has been assigned a custom role which grants them the &apos;find&apos; actiontype on the collection, OR if they have been granted a privilege on the database itself. System collections are never returned in this mode.&lt;/li&gt;
		&lt;li&gt;users with database-level privileges may now infer the existence of collection names.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Make &apos;show collections&apos; in the shell pass &apos;authorizedCollections: true&apos;. For new MongoDB servers, this will cause the shell to be able to obtain the new behavior if they are not authenticated as a user with the listCollections privilege.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;If the 4.0 shell obtains an Unauthorized error, which it would if it ran the listCollections command against an older version of the server which didn&apos;t respect authorizedCollections, it will attempt to parse out the set of collections it has been granted privileges on from the output of connectionStatus.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;&lt;a name=&quot;Scopeofchanges%3A&quot;&gt;&lt;/a&gt;Scope of changes: &lt;/h2&gt;

&lt;ul&gt;
	&lt;li&gt;listCollection command&lt;/li&gt;
	&lt;li&gt;db.getCollectionInfos() and db.getCollectionNames() method&lt;/li&gt;
	&lt;li&gt;listCollection action&lt;/li&gt;
	&lt;li&gt;mongo shell&lt;/li&gt;
	&lt;li&gt;privilege actions&lt;/li&gt;
	&lt;li&gt;4.0&lt;/li&gt;
	&lt;li&gt;4.0-compatibility&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;note: in various places where we get people started with show collections, we don&apos;t mention any privileges, as these are more in the getting started mode &amp;#8211; e.e.g use show collections to see the collections in the db.&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;Impacttootherdocsoutsideofthisproduct%3A&quot;&gt;&lt;/a&gt;Impact to other docs outside of this product: &lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%3A&quot;&gt;&lt;/a&gt;MVP: &lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%3A&quot;&gt;&lt;/a&gt;Resources: &lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;EngineeringTicketDescription%3A&quot;&gt;&lt;/a&gt;Engineering Ticket Description:&lt;/h2&gt;

&lt;p&gt;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 &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/connectionStatus/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;connectionStatus command&lt;/a&gt; command)&lt;/p&gt;

&lt;p&gt;and then, if they exist, show those namespaces to the user in shell helpers like &quot;show dbs&quot; or &quot;show collections&quot;.&lt;/p&gt;

&lt;p&gt;I suspect the fact that this is not baked into the shell&apos;s DNA today is a holdover from the fact that the shell was originally built when mongodb did not use auth by default...&lt;/p&gt;

&lt;p&gt;We should first investigate implementing showCollections properly in the server and backporting it all the way to 3.2.  If this doesn&apos;t work, we should modify the shell helpers to appear to have the correct behavior.&lt;/p&gt;</description>
                <environment></environment>
        <key id="545737">DOCS-11718</key>
            <summary>Docs for SERVER-32942: mongo shell: for users authorized to certain namespace, make discovery easy</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="kay.kim@mongodb.com">Kay Kim</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 May 2018 19:50:50 +0000</created>
                <updated>Sun, 29 Oct 2023 13:57:48 +0000</updated>
                            <resolved>Sat, 16 Jun 2018 15:13:01 +0000</resolved>
                                                    <fixVersion>4.0.0-rc0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1923634" author="xgen-internal-githook" created="Mon, 18 Jun 2018 16:19:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kay-kim&apos;, &apos;name&apos;: &apos;kay&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11718&quot; title=&quot;Docs for SERVER-32942: mongo shell: for users authorized to certain namespace, make discovery easy&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11718&quot;&gt;&lt;del&gt;DOCS-11718&lt;/del&gt;&lt;/a&gt;: tweak example sentence for authorizedCollections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/d823efb11b1615ca488fa9310f604ddf66393e6c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/d823efb11b1615ca488fa9310f604ddf66393e6c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1922658" author="xgen-internal-githook" created="Sat, 16 Jun 2018 15:11:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kay-kim&apos;, &apos;name&apos;: &apos;kay&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11718&quot; title=&quot;Docs for SERVER-32942: mongo shell: for users authorized to certain namespace, make discovery easy&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11718&quot;&gt;&lt;del&gt;DOCS-11718&lt;/del&gt;&lt;/a&gt;: listCollections and authorizedCollections option&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/730009b341bd9c57ca6637509399cef319c3beb5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/730009b341bd9c57ca6637509399cef319c3beb5&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="487905">SERVER-32942</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="526620">DOCS-11593</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 16 Jun 2018 15:11:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 34 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCS-11003</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 34 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htyd9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htpdo7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htxzjb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>