<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:21:39 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>[CDRIVER-4694] Do not rely on kms_request_append_payload() to calculate payload length</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4694</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;libmongoc and libmongocrypt have divergent KMS libraries (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4691&quot; title=&quot;Sync KMS sources with libmongocrypt&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4691&quot;&gt;&lt;del&gt;CDRIVER-4691&lt;/del&gt;&lt;/a&gt;). If the libraries are built statically (e.g. PHP driver with bundled sources) and libmongocrypt&apos;s KMS library is used, &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.24.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c#L1245&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc-cluster-aws.c&lt;/a&gt; will trigger an assert failure in &lt;tt&gt;kms_request_append_payload()&lt;/tt&gt; (&lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-581&quot; title=&quot;Allow passing negative len to kms_request_append_payload() for strlen() calculation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-581&quot;&gt;&lt;del&gt;MONGOCRYPT-581&lt;/del&gt;&lt;/a&gt;). This breaks MONGODB-AWS authentication.&lt;/p&gt;

&lt;p&gt;Independent of a fix in libmongocrypt to relax the assertion logic, libmongoc can work around this by explicitly calculating the payload length instead of passing &lt;tt&gt;-1&lt;/tt&gt;.&lt;/p&gt;

&lt;h4&gt;&lt;a name=&quot;Environment&quot;&gt;&lt;/a&gt;Environment&lt;/h4&gt;

&lt;p&gt;Observed building the PHP driver with libmongoc 1.24.1 and libmongocrypt 1.8.1, but the issue goes back to libmongocrypt 1.7.0.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2394561">CDRIVER-4694</key>
            <summary>Do not rely on kms_request_append_payload() to calculate payload length</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Jul 2023 13:01:26 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:47 +0000</updated>
                            <resolved>Tue, 25 Jul 2023 13:37:23 +0000</resolved>
                                                    <fixVersion>1.24.3</fixVersion>
                                    <component>Authentication</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5575180" author="xgen-internal-githook" created="Tue, 18 Jul 2023 19:58:09 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4694&quot; title=&quot;Do not rely on kms_request_append_payload() to calculate payload length&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4694&quot;&gt;&lt;del&gt;CDRIVER-4694&lt;/del&gt;&lt;/a&gt; calculate payload length for kms_request_append_payload() (#1346)&lt;/p&gt;

&lt;p&gt;This fixes an assert failure during MONGODB-AWS auth when an application is bundled with both libmongoc and libmongocrypt, and libmongocrypt&apos;s KMS library is used.&lt;br/&gt;
Branch: r1.24&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6553040b32df8bc827f9cf57ac485e793e93980a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6553040b32df8bc827f9cf57ac485e793e93980a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5575176" author="xgen-internal-githook" created="Tue, 18 Jul 2023 19:57:26 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4694&quot; title=&quot;Do not rely on kms_request_append_payload() to calculate payload length&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4694&quot;&gt;&lt;del&gt;CDRIVER-4694&lt;/del&gt;&lt;/a&gt; calculate payload length for kms_request_append_payload() (#1346)&lt;/p&gt;

&lt;p&gt;This fixes an assert failure during MONGODB-AWS auth when an application is bundled with both libmongoc and libmongocrypt, and libmongocrypt&apos;s KMS library is used.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/797b371ce9c23a4a557cbd4ac5ac20ddd762c280&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/797b371ce9c23a4a557cbd4ac5ac20ddd762c280&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5573779" author="jmikola@gmail.com" created="Tue, 18 Jul 2023 13:23:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/1346&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/1346&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1820967">PHPC-1895</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2393948">CDRIVER-4691</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2393917">MONGOCRYPT-581</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i20iqw:</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>