Skip to content

CDRIVER-6300 CSFLE/QE Support for HTTP Proxies - #2318

Open
mdb-ad wants to merge 29 commits into
mongodb:masterfrom
mdb-ad:http-proxy
Open

CDRIVER-6300 CSFLE/QE Support for HTTP Proxies#2318
mdb-ad wants to merge 29 commits into
mongodb:masterfrom
mdb-ad:http-proxy

Conversation

@mdb-ad

@mdb-ad mdb-ad commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Testing with the proxy server (from drivers-evergreen-tools): https://spruce.corp.mongodb.com/version/6a3b6a38da38fa0007d62c53

@mdb-ad
mdb-ad marked this pull request as ready for review June 16, 2026 17:37
@mdb-ad
mdb-ad requested a review from a team as a code owner June 16, 2026 17:37
@mdb-ad
mdb-ad requested a review from eramongodb June 16, 2026 17:37
Comment thread src/libmongoc/src/mongoc/mongoc-client-side-encryption.h Outdated
Comment thread src/libmongoc/src/mongoc/mongoc-client-side-encryption.h
Comment thread src/libmongoc/src/mongoc/mongoc-client-side-encryption.h
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/src/mongoc/mongoc-crypt.c Outdated
Comment thread src/libmongoc/src/mongoc/mongoc-client-side-encryption.h Outdated
@mdb-ad
mdb-ad requested review from eramongodb and kevinAlbs June 25, 2026 20:18
Comment on lines +245 to +247
if (!opts) {
return;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling a setter with opts == NULL is almost certainly programmer error: recommend using BSON_ASSERT_PARAM instead of an if (!opts) (better consistency with *_set_kms_credential_provider_callback()).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unresolving since this is not-yet addressed.

Aside: @mdb-ad I'd recommend using the 👍 react, rather than resolving, to acknowledge a comment when a reply isn't needed. As a reviewer, I generally prefer to resolve comments on re-review, as that cues me to remember what motivated the new changes.

Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/src/mongoc/mongoc-client-side-encryption.c
mdb-ad and others added 3 commits June 30, 2026 17:36
Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
Comment thread src/libmongoc/doc/mongoc_kms_connect_callback_fn.rst Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/src/mongoc/mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/doc/mongoc_kms_connect_callback_fn.rst Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
Comment thread src/libmongoc/tests/test-mongoc-client-side-encryption.c Outdated
mdb-ad and others added 7 commits July 29, 2026 21:46
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
@mdb-ad
mdb-ad requested a review from kevinAlbs August 17, 2026 17:39
Comment thread src/libmongoc/src/mongoc/mongoc-crypt.c
Comment on lines +11 to +15
typedef mongoc_stream_t *(*mongoc_kms_connect_callback_fn_t) (const char *host,
uint16_t port,
int32_t connecttimeoutms,
void *user_data,
bson_error_t *error);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest passing arguments through a new type similar to mongoc_oidc_callback_params_t. Though it adds more symbols, it more easily permits future extension by adding getters to the type.

Comment thread src/libmongoc/doc/mongoc_kms_connect_callback_fn_t.rst Outdated
@kevinAlbs
kevinAlbs self-requested a review August 31, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants