-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
The ClientEncryption class requires a dynamically provided `bson` library to use for encryption in FLE. By default, the driver stores bson (the bson library) on the topology. When a ClientEncryption is created, a user can provide bson manually. If no bson library is provided, ClientEncryption pulls `bson` from the provided client's topology. The topology isn't created on the MongoClient until the client is connected so for clients that are not connected the ClientEncryption constructor errors.
Now that auto-connect works with the node driver, users could pass in an unconnected client to the clientencryption class but would receive an error.
Acceptance Criteria
- Export BSON from mongodb module as internal
- Update libmongocrypt Node bindings tests to use the exported BSON and remove bson dev dependency
- Attempt to use exported BSON from mongodb in the Node bindings and fallback to options.bson or topology.bson when not found.
There are no Sub-Tasks for this issue.