<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:25:54 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>[SERVER-31071] copyDatabase() command doesn&apos;t support an auth DB parameter</title>
                <link>https://jira.mongodb.org/browse/SERVER-31071</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;db.copyDatabase has parameters: &lt;em&gt;fromhost&lt;/em&gt;, &lt;em&gt;username&lt;/em&gt; and &lt;em&gt;password&lt;/em&gt;. However, the user is only authenticated against the &lt;em&gt;fromdb&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We use many databases but store our user authentication in the &lt;em&gt;admin&lt;/em&gt; database. There should be an optional &apos;authdb&apos; parameter which allows the user to be authenticated against that instead.&lt;/p&gt;

&lt;p&gt;It seems inconsistent, since we can connect to a mongo server using any database as the authdb, and then access other databases.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22576&quot; title=&quot;Shell&amp;#39;s db.copyDatabase() doesn&amp;#39;t support authDb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22576&quot;&gt;&lt;del&gt;SERVER-22576&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="426832">SERVER-31071</key>
            <summary>copyDatabase() command doesn&apos;t support an auth DB parameter</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="13203">Gone away</resolution>
                                        <assignee username="maria.vankeulen@mongodb.com">Maria van Keulen</assignee>
                                    <reporter username="rpavlicek">Richard Pavlicek</reporter>
                        <labels>
                            <label>platforms_security</label>
                    </labels>
                <created>Tue, 12 Sep 2017 23:27:24 +0000</created>
                <updated>Fri, 27 Oct 2023 20:43:54 +0000</updated>
                            <resolved>Fri, 10 Aug 2018 15:33:55 +0000</resolved>
                                                                    <component>Security</component>
                                        <votes>1</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="1972646" author="maria.vankeulen" created="Fri, 10 Aug 2018 15:00:10 +0000"  >&lt;p&gt;Closing since the copyDB command was removed as of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36257&quot; title=&quot;Remove copyDB and clone commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36257&quot;&gt;&lt;del&gt;SERVER-36257&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1953779" author="greg.mckeon" created="Mon, 23 Jul 2018 15:50:44 +0000"  >&lt;p&gt;Sending to storage to close when they remove copydb.&lt;/p&gt;</comment>
                            <comment id="1673962" author="sara.golemon" created="Fri, 15 Sep 2017 15:13:26 +0000"  >&lt;p&gt;Yeah, none of my earlier suggestions are particularly scalable for non one-off issues.&lt;/p&gt;

&lt;p&gt;As to fixing copyDatabase() I have bad news and good news.  Bad news: We&apos;re already in feature freeze for 3.6, so it&apos;s a little too late to get this change in (it&apos;s not as simple as it sounds at first glance).  Good news: We already have work scheduled for the next release which, as a side-effect, will make this problem disappear. In fact, your approach of keeping all users in the admin DB fits in perfectly with this update.&lt;/p&gt;

&lt;p&gt;So if your client-side read/writes are working for now, albeit imperfectly, I&apos;d ask for your patience and to keep an eye on next year&apos;s release.&lt;/p&gt;</comment>
                            <comment id="1673393" author="rpavlicek" created="Thu, 14 Sep 2017 22:00:32 +0000"  >&lt;p&gt;Thanks for responding!&lt;/p&gt;

&lt;p&gt;For us this is not a one-off problem, as we create many database dynamically, and then occasionally have to copy them across environments.&lt;/p&gt;

&lt;p&gt;We thought of a solution like yours (have a higher privilege user create a user on the fromDB dynamically, and then delete it after the copy is done), but this creates security headaches for us which we&apos;d rather avoid. Backup/restore is also not a good option, since this is meant to be done by a dynamic PHP application &amp;#8211; not a MongoDB admin.&lt;/p&gt;

&lt;p&gt;For now, the best solution (for us) is to read/write the data, until this function is enhanced.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
-Rich&lt;/p&gt;</comment>
                            <comment id="1672233" author="sara.golemon" created="Wed, 13 Sep 2017 19:25:47 +0000"  >&lt;p&gt;Hello! Yes... That certainly seems like an oversight, and I&apos;m sorry for the frustration this is likely causing. Allow me to have a few conversations here to figure out the best way to address this moving forward.&lt;/p&gt;

&lt;p&gt;In the mean time, I wanted to check in and see if you were able to come up with a workaround.  If this is a one-off problem you&apos;ve only just encountered then creating a temporary user in the fromdb would probably be the most expedient.  A backup/restore might also work for a more generalized case.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="483297">SERVER-32713</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Sep 2017 15:16:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 26 weeks, 5 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>PM-919</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, 26 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>greg.mckeon@mongodb.com</customfieldvalue>
            <customfieldvalue>maria.vankeulen@mongodb.com</customfieldvalue>
            <customfieldvalue>rpavlicek</customfieldvalue>
            <customfieldvalue>sara.golemon@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htepbz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htvs3b:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2455">Storage NYC 2018-08-13</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htebfb:</customfieldvalue>

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