<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:18:59 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-8983] Add error code for authentication fails - especially important for auditing products</title>
                <link>https://jira.mongodb.org/browse/SERVER-8983</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently when authentication fails (e.g. in db.auth() in the shell), the error that comes back does not have an error code, just a description.  It is a common auditing policy by enterprises to log how many times someone tries to log-in and not having an error code for this makes it harder to identify.  Especially as other DB products have error codes, it makes Mongo a special case.  &lt;/p&gt;

&lt;p&gt;Providing error codes is a separate JIRA issue but specifically for this error would help in the short-term and make Mongo easier to integrate with.  &lt;/p&gt;</description>
                <environment></environment>
        <key id="68472">SERVER-8983</key>
            <summary>Add error code for authentication fails - especially important for auditing products</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="schwerin@mongodb.com">Andy Schwerin</assignee>
                                    <reporter username="matt.kalan@mongodb.com">Matt Kalan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Mar 2013 20:02:20 +0000</created>
                <updated>Mon, 11 Jul 2016 17:59:40 +0000</updated>
                            <resolved>Thu, 28 Mar 2013 18:48:23 +0000</resolved>
                                    <version>2.4.0-rc2</version>
                                    <fixVersion>2.4.2</fixVersion>
                    <fixVersion>2.5.0</fixVersion>
                                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="301207" author="auto" created="Thu, 28 Mar 2013 23:17:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-27T14:46:09Z&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8983&quot; title=&quot;Add error code for authentication fails - especially important for auditing products&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8983&quot;&gt;&lt;del&gt;SERVER-8983&lt;/del&gt;&lt;/a&gt; Include AuthenticationFailed error code in failed MONGODB-CR authentications.&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7f45f0fe14b9ffd64b6e75a9fe87d49c66a17b83&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7f45f0fe14b9ffd64b6e75a9fe87d49c66a17b83&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="301125" author="spencer" created="Thu, 28 Mar 2013 21:10:22 +0000"  >&lt;p&gt;The error message is &quot;auth fails&quot;.&lt;/p&gt;

&lt;p&gt;The &quot;code&quot; field will have the value 18&lt;/p&gt;</comment>
                            <comment id="301080" author="matt.kalan@10gen.com" created="Thu, 28 Mar 2013 20:09:59 +0000"  >&lt;p&gt;Is the actual message returned in the err field &quot;AuthenticationFailed&quot; or something else?  And the code field I assume is where 18 is in the result document.  &lt;/p&gt;</comment>
                            <comment id="301072" author="schwerin" created="Thu, 28 Mar 2013 20:00:18 +0000"  >&lt;p&gt;There is no complete list, right now.  Error codes under 4000 are here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are the &quot;semantically meaningful&quot; codes, that you application might use to make decisions.  Higher error codes are more about the location where the error occurred and less about the meaning.&lt;/p&gt;</comment>
                            <comment id="301015" author="matt.kalan@10gen.com" created="Thu, 28 Mar 2013 18:55:00 +0000"  >&lt;p&gt;Andy, is there a list of error codes and their description anywhere?  In particular for this one, I see you say error code 18, and also what is the message?  This page doesn&apos;t seem to be updated: &lt;a href=&quot;http://www.mongodb.org/about/contributors/error-codes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/about/contributors/error-codes/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="301008" author="auto" created="Thu, 28 Mar 2013 18:48:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-27T14:46:09Z&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8983&quot; title=&quot;Add error code for authentication fails - especially important for auditing products&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8983&quot;&gt;&lt;del&gt;SERVER-8983&lt;/del&gt;&lt;/a&gt; Include AuthenticationFailed error code in failed MONGODB-CR authentications.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2dc4f569adf4b66a2b9f4500de521c9cdf7ba73b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2dc4f569adf4b66a2b9f4500de521c9cdf7ba73b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="299062" author="matt.kalan@10gen.com" created="Tue, 26 Mar 2013 18:29:06 +0000"  >&lt;p&gt;I intend on the wire here not necessarily in the log.  I&apos;m hearing we would like to allow reporting on Mongo-CR as well so can we add support for that too in the live error response?  &lt;/p&gt;</comment>
                            <comment id="295879" author="schwerin" created="Fri, 22 Mar 2013 15:43:46 +0000"  >&lt;p&gt;I was apparently incorrect.  Only the SASL variants of the authentication commands properly set the AuthenticationFailed code in returned messages, though neither write the code to the log.  Which change is this request about, though?  The logging should be easy enough to backport, while the behavior of the MONGODB-CR authentication interchange will need a touch more QA to be certain.&lt;/p&gt;</comment>
                            <comment id="295866" author="schwerin" created="Fri, 22 Mar 2013 15:34:16 +0000"  >&lt;p&gt;Error code 18 is AuthenticationFailed in 2.4.0.  This value is returned to the client, but not presently written to the logs.  Please clarify the desired behavior on authentication failure.&lt;/p&gt;</comment>
                            <comment id="289517" author="matt.kalan@10gen.com" created="Thu, 14 Mar 2013 20:36:23 +0000"  >&lt;p&gt;It works well if this format used already for other errors would be used for auth fails too.&lt;br/&gt;
db.$cmd.reply({err:&apos;E11000 duplicate key error index: test.things.$&lt;em&gt;id&lt;/em&gt;  dup key: { : 6.0 }&apos;,code:11000,n:0,connectionId:68,ok:61503.000000})&quot; &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="95404">SERVER-11329</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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 22 Mar 2013 15:34:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 46 weeks, 6 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_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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 46 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>matt.kalan@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn1jz:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>46252</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|hszv2f:</customfieldvalue>

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