<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08:32 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>[MONGOCRYPT-365] Support new context and state for rewrapManyDataKey</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-365</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;p&gt;&lt;b&gt;Background&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;WRITING-9378 proposes adding a new context to libmongocrypt to assist with driver implementation of the new &lt;tt&gt;ClientEncryption::rewrapManyDataKey&lt;/tt&gt; method.&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;ClientEncryption::rewrapManyDataKey&lt;/tt&gt; method should create a context in libmongocrypt.&lt;/p&gt;

&lt;p&gt;The libmongocrypt context should do the following:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Enter the &lt;tt&gt;MONGOCRYPT_CTX_NEED_MONGO_KEYS&lt;/tt&gt; state to request the driver &quot;find&quot; matching keys.&lt;/li&gt;
	&lt;li&gt;Decrypt matching keys with the old KMS provider, entering the &lt;tt&gt;MONGOCRYPT_CTX_NEED_KMS&lt;/tt&gt; state as needed.&lt;/li&gt;
	&lt;li&gt;Encrypt matching keys with the new KMS provider, entering the &lt;tt&gt;MONGOCRYPT_CTX_NEED_KMS&lt;/tt&gt; state as needed.&lt;/li&gt;
	&lt;li&gt;&lt;del&gt;Enter a new state &lt;tt&gt;MONGOCRYPT_CTX_NEED_UPDATE&lt;/tt&gt; to request the driver run a bulk update on the key vault collection with the new documents.&lt;/del&gt;
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;Drivers are expected to run a bulk update after obtaining the rewrapped key documents with &lt;tt&gt;mongocrypt_ctx_finalize()&lt;/tt&gt;, after which libmongocrypt has no further work to do. A new state was therefore deemed unnecessary.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Scope&lt;/b&gt;&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Support a new context in libmongocrypt to rewrap multiple data keys.&lt;/li&gt;
	&lt;li&gt;&lt;del&gt;Add a new state &lt;tt&gt;MONGOCRYPT_CTX_NEED_UPDATE&lt;/tt&gt; to request the driver run a bulk update.&lt;/del&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1958117">MONGOCRYPT-365</key>
            <summary>Support new context and state for rewrapManyDataKey</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="ezra.chung@mongodb.com">Ezra Chung</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Jan 2022 15:44:37 +0000</created>
                <updated>Sat, 28 Oct 2023 10:25:38 +0000</updated>
                            <resolved>Mon, 28 Mar 2022 18:10:26 +0000</resolved>
                                                    <fixVersion>1.5.0-alpha0</fixVersion>
                    <fixVersion>1.5.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4439430" author="xgen-internal-githook" created="Mon, 28 Mar 2022 18:10:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ezra Chung&apos;, &apos;email&apos;: &apos;88335979+eramongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;eramongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-365&quot; title=&quot;Support new context and state for rewrapManyDataKey&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-365&quot;&gt;&lt;del&gt;MONGOCRYPT-365&lt;/del&gt;&lt;/a&gt; Implement rewrapManyDataKey (#270)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Preserve dates when copying _mongocrypt_key_doc_t&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Add mode to key broker to permit adding keys without requests&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Implement mongocrypt_ctx_rewrap_many_datakey_init&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/66b7873ed88743d84de4e1dac2efaf8f60cb88c3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/66b7873ed88743d84de4e1dac2efaf8f60cb88c3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2078744">MONGOCRYPT-450</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                            <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>MONGOCRYPT-346</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6iev:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>