Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRIVERS-2287 Clarify interaction of bypassAutoEncryption and csfle search paths #1185

Conversation

addaleax
Copy link
Contributor

Picking the behavior of not setting csfle search paths when bypassAutoEncryption was passed, because:

  • Creating a mongocrypt_t instance with an unnecessary csfle library may conflict with the creation of a mongocrypt_t instance that is supposed to use the csfle library but from another path
  • It seems like bypassAutoEncryption could be implemented by using a ClientEncryption instance rather than a separate libmongocrypt handle (on what at least the Python and Node.js bindings call AutoEncrypter), in which case the csfle library should probably never be loaded

@addaleax addaleax requested a review from a team as a code owner April 20, 2022 09:44
@addaleax addaleax requested review from comandeo and removed request for a team April 20, 2022 09:44
@kevinAlbs kevinAlbs self-requested a review April 20, 2022 12:55
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

Thank you for the change, LGTM!

It seems like bypassAutoEncryption could be implemented by using a ClientEncryption instance rather than a separate libmongocrypt handle (on what at least the Python and Node.js bindings call AutoEncrypter), in which case the csfle library should probably never be loaded

That is a great point I had not considered. csfle, like mongocryptd, is not needed in the ClientEncryption instance.

@addaleax addaleax merged commit 6ed5c62 into mongodb:master Apr 20, 2022
@addaleax addaleax deleted the 2287-clarify-bypassAutoEncryption-csfle-search-paths branch April 20, 2022 13:27
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.

None yet

3 participants