<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:15: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-7902] mongo shell should read /etc/mongorc.js at startup before $HOME/.mongorc.js</title>
                <link>https://jira.mongodb.org/browse/SERVER-7902</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Our security requirements stipulate that banner text should be displayed at all points of access to critical systems to advise that unauthorised access is not allowed. This should be supported by the mongo shell which should allow a MongoDB administator to specify a text file which will be shown as banner text every time someone uses the mongo shell - e.g. via a /etc/mongo file in a similar way to the /etc/motd file.&lt;/p&gt;</description>
                <environment>RHEL 6</environment>
        <key id="58947">SERVER-7902</key>
            <summary>mongo shell should read /etc/mongorc.js at startup before $HOME/.mongorc.js</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="andreas.nilsson">Andreas Nilsson</assignee>
                                    <reporter username="simon.harvey@citi.com">Simon Harvey</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Tue, 11 Dec 2012 14:39:27 +0000</created>
                <updated>Tue, 16 Nov 2021 16:06:23 +0000</updated>
                            <resolved>Tue, 7 May 2013 18:22:16 +0000</resolved>
                                    <version>2.2.0</version>
                                    <fixVersion>2.5.0</fixVersion>
                                    <component>Admin</component>
                    <component>Security</component>
                    <component>Shell</component>
                                        <votes>1</votes>
                                    <watches>15</watches>
                                                                                                                <comments>
                            <comment id="330069" author="auto" created="Tue, 7 May 2013 10:13:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-05-07T10:12:38Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7902&quot; title=&quot;mongo shell should read /etc/mongorc.js at startup before $HOME/.mongorc.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7902&quot;&gt;&lt;del&gt;SERVER-7902&lt;/del&gt;&lt;/a&gt; Visual Studio &amp;#8211; add library to SpiderMonkey build&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cee7ec3cbfbc26b7a765f43d74d51e2a5b7630fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cee7ec3cbfbc26b7a765f43d74d51e2a5b7630fa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="329753" author="auto" created="Mon, 6 May 2013 21:34:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-30T16:04:06Z&apos;, u&apos;name&apos;: u&apos;agralius&apos;, u&apos;email&apos;: u&apos;andreas.nilsson@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7902&quot; title=&quot;mongo shell should read /etc/mongorc.js at startup before $HOME/.mongorc.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7902&quot;&gt;&lt;del&gt;SERVER-7902&lt;/del&gt;&lt;/a&gt; added support for global /etc/mongorc.js&lt;/p&gt;

&lt;p&gt;The corresponding Windows path is&lt;br/&gt;
&amp;lt;ProgramData&amp;gt;\MongoDB\mongorc.js&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f2bf885d383cab8d4c035abb3a6b5c7ce759c563&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f2bf885d383cab8d4c035abb3a6b5c7ce759c563&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="325646" author="jhn" created="Wed, 1 May 2013 13:48:57 +0000"  >&lt;p&gt;I&apos;ll vote for this one as well, it&apos;s a usable feature.&lt;/p&gt;

&lt;p&gt;@Eric:s suggestion above sounds good to me. But let the name of the file that mongo should look after in &lt;tt&gt;/etc&lt;/tt&gt; be &lt;tt&gt;mongorc.js&lt;/tt&gt; (without the leading dot). Hidden files in &lt;tt&gt;/etc&lt;/tt&gt; is confusing.&lt;/p&gt;</comment>
                            <comment id="316330" author="simon.harvey@citi.com" created="Thu, 18 Apr 2013 15:23:53 +0000"  >&lt;p&gt;Eric - from my perspective I don&apos;t care about Windows.&lt;/p&gt;</comment>
                            <comment id="316236" author="milkie" created="Thu, 18 Apr 2013 13:42:16 +0000"  >&lt;p&gt;We can make the shell always execute a file named &quot;/etc/mongorc.js&quot; if it exists.&lt;br/&gt;
This will happen before running .mongorc.js in the user&apos;s home directory.&lt;br/&gt;
--norc command line parameter will only skip running .mongorc.js in the home directory and will have no effect on running the file in /etc.&lt;br/&gt;
Is it acceptable to not have a similar option for Windows?&lt;/p&gt;</comment>
                            <comment id="316130" author="simon.harvey@citi.com" created="Thu, 18 Apr 2013 10:32:03 +0000"  >&lt;p&gt;The first option sounds fine, i.e. the mongo shell always running a file in /etc if it exists; we could put the banner text there and it would be protected and in one place on the server. It should not be possible for the user to avoid getting this banner if they connect via the mongo shell, although I appreciate there are numerous other ways they could connect to MongoDB and avoid it.&lt;/p&gt;</comment>
                            <comment id="306294" author="matt.kalan@10gen.com" created="Thu, 4 Apr 2013 22:03:08 +0000"  >&lt;p&gt;Simon, do you think it would be fine to make the shell look for a .mongorc.js in /etc/ and execute it automatically?  Or would it work to symlink .mongorc.js in everyone&apos;s home directory to a common protected file somewhere?  &lt;/p&gt;</comment>
                            <comment id="304365" author="simon.harvey@citi.com" created="Tue, 2 Apr 2013 18:41:28 +0000"  >&lt;p&gt;Eric,&lt;/p&gt;

&lt;p&gt;I understand there would be ways of circumventing this, but all we are looking for is to have the mongo shell output the contents of a file such as /etc/mongo_banner (if it exists) when the shell command is invoked.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;	Simon.&lt;/p&gt;
</comment>
                            <comment id="304227" author="milkie" created="Tue, 2 Apr 2013 16:19:16 +0000"  >&lt;p&gt;The mongo shell connects just like every other client driver; we can&apos;t send it a message to display from the server without major work.  Also, you could just write your own mongo shell using the C++ driver and it wouldn&apos;t display the message, so the message would still not be unavoidable.&lt;/p&gt;</comment>
                            <comment id="304224" author="matt.kalan@10gen.com" created="Tue, 2 Apr 2013 16:13:08 +0000"  >&lt;p&gt;Yeah it needs to be definite that it always appears so a user can&apos;t avoid it.  It sounds like best to configure on the server text that is sent to a Mongo shell client on connection.  &lt;/p&gt;</comment>
                            <comment id="304216" author="milkie" created="Tue, 2 Apr 2013 15:56:41 +0000"  >&lt;p&gt;Can using a .mongorc file satisfy this requirement?  You can print the message using Javascript in that file.  You can still avoid running the file with a command-line parameter to the shell, however.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 2 Apr 2013 15:51:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 41 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 41 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10249"><![CDATA[Cannot]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andreas.nilsson</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>jhn</customfieldvalue>
            <customfieldvalue>matt.kalan@mongodb.com</customfieldvalue>
            <customfieldvalue>simon.harvey@citi.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnexj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>36415</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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|hsyy6f:</customfieldvalue>

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