-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Component/s: Client Side Encryption
-
None
Summary
Test mongocryptd is not spawned when shared library is loaded
Motivation
The CSFLE specification expects mongocryptd not to be spawned if the crypt_shared library is available.
See Spawning mongocryptd:
If the following conditions are met:
- The user's ``MongoClient`` is configured for client-side encryption (i.e.
`bypassAutoEncryption` is not |false|)- *AND* the user has not disabled `mongocryptd` spawning (i.e. by setting
`extraOptions.mongocryptdBypassSpawn` to |true|),- *AND* the crypt_shared_ library is unavailable (Refer:
`Detecting crypt_shared Availability`_),- *AND* the |opt-crypt_shared-required| option is |false|.
*then* ``mongocryptd`` MUST be spawned by the driver.
There is no prose test to check that mongocryptd is not spawned when the crypt_shared library is available.
Who is the affected end user?
Users of CSFLE with automatic encryption.
How likely is it that this problem or use case will occur?
Likely. Reviewing code suggests there is a bug in some drivers.
If the problem does occur, what are the consequences and how severe are they?
If a driver is incorrectly attempting to spawn mongocryptd. This may result in an error configuring a MongoClient with automatic encryption. mongocryptd may not be available to spawn.
Is this issue urgent?
No.
Is this ticket only for tests?
Yes.
- is related to
-
DRIVERS-2449 Do not connect to mongocryptd if shared library is loaded
- Implementing
- split to
-
PHPLIB-1031 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
CDRIVER-4515 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
CSHARP-4386 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
CXX-2608 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
GODRIVER-2614 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
MOTOR-1060 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
NODE-4772 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
PYTHON-3492 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
RUBY-3168 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
RUST-1528 Test mongocryptd is not spawned when shared library is loaded
- Closed
-
JAVA-4794 Test mongocryptd is not spawned when shared library is loaded
- Closed