<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:59:43 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-10055] Sample commands should quote the password value</title>
                <link>https://jira.mongodb.org/browse/DOCS-10055</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Customer from &lt;a href=&quot;https://jira.mongodb.org/browse/MMSSUPPORT-14327&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/MMSSUPPORT-14327&lt;/a&gt; suffered serious delay because he copied the sample mongodump+mongorestore command on the &lt;a href=&quot;https://docs.atlas.mongodb.com/import/mongorestore/#run-mongodump-and-mongorestore&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Atlas &quot;Seed with mongorestore&quot; page&lt;/a&gt; and replaced the password fields with his values, and he got non-intuitive error messages because his passwords had special characters in them and he didn&apos;t wrap them inside single quotes.  He wants us to update that page to mention the possible need to quote the username/pw/etc, and the mongorestore/mongodump error message should suggest lack of quotes as a possible reason for failed authentication.&lt;/p&gt;

&lt;p&gt;I suggested that the need to use single quotes to prevent special characters (such as $, @, &amp;amp;, ! in strings (such as such as passwords, usernames, database object identifiers etc) from being interpreted is generic feature of Linux and not specific to using mongodump and mongorestore when importing into Atlas, or to MongoDB used from the command line generally.  I didn&apos;t want this to open the floodgates to revising every manual page where a string is used on the command line.&lt;/p&gt;

&lt;p&gt;He countered by saying that special characters are likely in passwords (and are mandated by the password rules at some sites), and suggested the sample command include the quotes.  &lt;br/&gt;
He pointed out that we quote the admin.system.users argument to --nsExclude.&lt;/p&gt;

&lt;p&gt;He went on to suggest it would be even better and probably more secure to store Atlas credentials in a file, like ~/.mongodb/credentials, similar to what AWS does: &lt;a href=&quot;http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I think replacing &lt;tt&gt;-p mySourcePassword&lt;/tt&gt; with &lt;tt&gt;-p &apos;mySourceP@$$word&apos;&lt;/tt&gt; and &lt;tt&gt;-p atlasPassw0Rd&lt;/tt&gt; with &lt;tt&gt;-p &apos;atlasP@$$assw0Rd&apos;&lt;/tt&gt; or similar on &lt;a href=&quot;https://docs.atlas.mongodb.com/import/mongorestore/#run-mongodump-and-mongorestore&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;that page&lt;/a&gt; would be enough, and perhaps consider similar changes on similar pages elsewhere where we have copyable sample commands.&lt;/p&gt;

</description>
                <environment>Linux, MacOS, ... all I think.</environment>
        <key id="368880">DOCS-10055</key>
            <summary>Sample commands should quote the password value</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="9">Done</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="william.byrne@mongodb.com">William Byrne III</reporter>
                        <labels>
                            <label>atlas-docs</label>
                    </labels>
                <created>Wed, 29 Mar 2017 04:19:53 +0000</created>
                <updated>Tue, 11 Apr 2017 13:23:24 +0000</updated>
                            <resolved>Tue, 11 Apr 2017 13:23:23 +0000</resolved>
                                                    <fixVersion>v20170418</fixVersion>
                                    <component>Atlas</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1545841" author="kay.kim@10gen.com" created="Tue, 11 Apr 2017 13:23:24 +0000"  >&lt;p&gt;git commit:&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/cloud-docs/commit/c30662a464008336d6c94a9c3dc4c36da5364c66&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/cloud-docs/commit/c30662a464008336d6c94a9c3dc4c36da5364c66&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</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>Tue, 11 Apr 2017 13:23:24 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 44 weeks, 1 day 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_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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 44 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>william.byrne@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht4xv3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsxc4f:</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|hrzq67:</customfieldvalue>

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