<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:01:26 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-64911] Ban comparisons to encrypted fields in collection validator and partialFilterExpression</title>
                <link>https://jira.mongodb.org/browse/SERVER-64911</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The create, collMod, and createIndex commands all &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/8eeeee95d30f577376fe3682ddd26dcd458ed54d/src/mongocrypt-ctx-encrypt.c#L741-L745&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bypass query analysis&lt;/a&gt;, however they contain match expressions which may refer to encrypted fields. &lt;/p&gt;</description>
                <environment></environment>
        <key id="2008594">SERVER-64911</key>
            <summary>Ban comparisons to encrypted fields in collection validator and partialFilterExpression</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="davis.haupt@mongodb.com">Davis Haupt</assignee>
                                    <reporter username="nicholas.zolnierz@mongodb.com">Nicholas Zolnierz</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Mar 2022 20:22:46 +0000</created>
                <updated>Sun, 29 Oct 2023 21:40:35 +0000</updated>
                            <resolved>Tue, 3 May 2022 18:49:52 +0000</resolved>
                                                    <fixVersion>6.0.0-rc5</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4536770" author="xgen-internal-githook" created="Mon, 9 May 2022 21:31:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Davis Haupt&apos;, &apos;email&apos;: &apos;davis.haupt@mongodb.com&apos;, &apos;username&apos;: &apos;davish&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64911&quot; title=&quot;Ban comparisons to encrypted fields in collection validator and partialFilterExpression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64911&quot;&gt;&lt;del&gt;SERVER-64911&lt;/del&gt;&lt;/a&gt; Add create, collMod and createIndexes to list of commands to send to encryption&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5b6dfa169031f8e0d68d5d2ce665c4d977d06494&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5b6dfa169031f8e0d68d5d2ce665c4d977d06494&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4536769" author="xgen-internal-githook" created="Mon, 9 May 2022 21:30:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Davis Haupt&apos;, &apos;email&apos;: &apos;davis.haupt@mongodb.com&apos;, &apos;username&apos;: &apos;davish&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64911&quot; title=&quot;Ban comparisons to encrypted fields in collection validator and partialFilterExpression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64911&quot;&gt;&lt;del&gt;SERVER-64911&lt;/del&gt;&lt;/a&gt; Ban comparisons to encrypted fields in collection validator and partialFilterExpression&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/8dcdcb47bc4e5a77f04cf76718c2dedb62a0f895&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/8dcdcb47bc4e5a77f04cf76718c2dedb62a0f895&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4523488" author="xgen-internal-githook" created="Tue, 3 May 2022 18:48:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Davis Haupt&apos;, &apos;email&apos;: &apos;davis.haupt@mongodb.com&apos;, &apos;username&apos;: &apos;davish&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64911&quot; title=&quot;Ban comparisons to encrypted fields in collection validator and partialFilterExpression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64911&quot;&gt;&lt;del&gt;SERVER-64911&lt;/del&gt;&lt;/a&gt; Add create, collMod and createIndexes to list of commands to send to encryption&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/715f5b29f4c1a689d6ff363b12beabc1ae8d5e6e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/715f5b29f4c1a689d6ff363b12beabc1ae8d5e6e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4523486" author="xgen-internal-githook" created="Tue, 3 May 2022 18:48:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Davis Haupt&apos;, &apos;email&apos;: &apos;davis.haupt@mongodb.com&apos;, &apos;username&apos;: &apos;davish&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64911&quot; title=&quot;Ban comparisons to encrypted fields in collection validator and partialFilterExpression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64911&quot;&gt;&lt;del&gt;SERVER-64911&lt;/del&gt;&lt;/a&gt; Ban comparisons to encrypted fields in collection validator and partialFilterExpression&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/68ea8c2bf939a22c5eabedea477f05560584848d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/68ea8c2bf939a22c5eabedea477f05560584848d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4491098" author="nicholas.zolnierz" created="Tue, 19 Apr 2022 14:43:05 +0000"  >&lt;p&gt;After discussing with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jacob.evans%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jacob.evans@mongodb.com&quot;&gt;jacob.evans@mongodb.com&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.albertson%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kevin.albertson@mongodb.com&quot;&gt;kevin.albertson@mongodb.com&lt;/a&gt;, we&apos;ll go ahead and schedule this in the next sprint or two to implement the safeguard in query analysis. The simplest &quot;fix&quot; is likely to ban any encrypted references in a validator/partialFilterExpression, since this doesn&apos;t require any server-side rewrites. Perhaps a follow-up ticket to actually support marking comparisons in these contexts is worth filing as well.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="2038289">DOCS-15305</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2100654">MONGOCRYPT-463</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>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 21 Apr 2022 20:18:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 39 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>This patch affects the create and collMod commands, which can contain validators, and the createIndexes command, which can contain partialFilterExpressions for each index. &lt;br/&gt;
&lt;br/&gt;
The limitations on partialFilterExpressions are pretty straightforward, but the limitations on validators need to have a few special cases because validators can be used to designate encrypted fields in a collection when using FLE1 with JSON schemas, but $jsonSchema is not supported in query analysis.&lt;br/&gt;
&lt;br/&gt;
For FLE 1, any validator provided that includes $jsonSchema must match the schema in the schema map exactly. This means that running collMod with a validator cannot extend the schema to add new encrypted fields, or new unencrypted fields.&lt;br/&gt;
&lt;br/&gt;
For FLE 2, a $jsonSchema that references an encrypted field will always result in a query analysis error because $jsonSchema is not supported in query analysis. Server-side behavior that adds validation for the binData of encrypted fields still works, because query analysis does not run on the server-side.&lt;br/&gt;
&lt;br/&gt;
Since the server codebase does not contain driver code but instead makes use of implicit encryption in the legacy shell in integration tests, drivers should make sure to write an integration test to confirm that schemas in the schemaMap are properly sent to query analysis along with create, collMod, and createIndexes commands. This has some implications for collMod with FLE1 specifically, for the reason mentioned above.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></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>
                            1 year, 39 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>davis.haupt@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>nicholas.zolnierz@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0ogfb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i07gss:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5891">QO 2022-05-02</customfieldvalue>
    <customfieldvalue id="5893">QO 2022-05-16</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="16945"><![CDATA[Drivers]]></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|i0o2kn:</customfieldvalue>

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