[CSHARP-4153] Add FLE 2 API to AutoEncryptionOpts Created: 27/Apr/22  Updated: 28/Oct/23  Resolved: 02/Jun/22

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.16.0

Type: Spec Change Priority: Unknown
Reporter: PM Bot Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Epic Link: FLE 2.0 Support
Quarter: FY23Q2
Upstream Changes Summary:

DRIVERS-2297:
Please see https://github.com/mongodb/specifications/pull/1195 and https://github.com/mongodb/specifications/pull/1214 for the specification changes.

Please update the tests to this commit, which includes test fixes:
https://github.com/mongodb/specifications/commit/c3784d44555752bb058993e7b0bb51cab5b3b1d5

Please see the Go driver implementation for reference.

Bindings changes

Upgrade libmongocrypt dependency to 1.5.0. Drivers can use 1.5.0-alpha0 to test. Binaries are available from this upload-all task.

Update the bindings to libmongocrypt to add the new functions: mongocrypt_setopt_encrypted_field_config_map and mongocrypt_setopt_bypass_query_analysis.

Drivers that implement crypto callbacks (C#, Java, Node.js, Python, Ruby) need to wrap the new crypto callback: mongocrypt_setopt_aes_256_ctr.

Drivers languages that do not support CTR mode may alternatively wrap mongocrypt_setopt_aes_256_ecb. From this survey, this may only be C#.

Driver changes

Add the new driver API options: AutoEncryptionOpts.encryptedFieldsMap and AutoEncryptionOpts.bypassQueryAnalysis.

Pass AutoEncryptionOpts.encryptedFieldsMap to libmongocrypt with mongocrypt_setopt_encrypted_field_config_map.

If AutoEncryptionOpts.bypassQueryAnalysis is true, call the libmongocrypt function mongocrypt_setopt_bypass_query_analysis.

Test changes

Add encrypted_fields to the CSFLE specification test format.

Sync the added CSFLE specification tests.


 Description   

This ticket was split from DRIVERS-2297, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 02/Jun/22 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-4153: Add FLE 2 API to AutoEncryptionOpts. (#793)

CSHARP-4160: Add FLE 2 test for compactStructuredEncryptionData.
CSHARP-4157: Add FLE 2 API to ClientEncryptionOpts.
CSHARp-4175: Ban comparisons to encrypted fields in collection validator and partialFilterExpression.
Co-authored-by: Boris <boris.dogadov@mongodb.com>
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/20a640b50ae6656581f36b95cb0771bd7a5e42da

Comment by Githook User [ 01/Jun/22 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-4153: Add FLE 2 API to AutoEncryptionOpts. (#330)

CSHARP-4157: Add FLE 2 API to ClientEncryptionOpts.
CSHARP-4190: Rename csfle shared library references.

Co-authored-by: Boris <boris.dogadov@mongodb.com>
Branch: master
https://github.com/mongodb/libmongocrypt/commit/d5d0e9609afa49f87eef7aee62ee1fe504b08d77

Generated at Wed Feb 07 21:47:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.