Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,36 @@ export interface AutoEncryptionOptions {
/** Command line arguments to use when auto-spawning a mongocryptd */
mongocryptdSpawnArgs?: string[];
/**
* Full path to a CSFLE shared library to be used (instead of mongocryptd)
* @experimental
* Full path to a CSFLE shared library to be used (instead of mongocryptd).
*
* This needs to be the path to the file itself, not a directory.
* It can be an absolute or relative path. If the path is relative and
* its first component is `$ORIGIN`, it will be replaced by the directory
* containing the mongodb-client-encryption native addon file. Otherwise,
* the path will be interpreted relative to the current working directory.
*
* Currently, loading different CSFLE shared library files from different
* MongoClients in the same process is not supported.
*
* If this option is provided and no CSFLE shared library could be loaded
* from the specified location, creating the MongoClient will fail.
Comment thread
nbbeeken marked this conversation as resolved.
*
* If this option is not provided and `csfleRequired` is not specified,
* the AutoEncrypter will attempt to spawn and/or use mongocryptd according
* to the mongocryptd-specific `extraOptions` options.
*/
csflePath?: string;
/**
* If specified, never use mongocryptd and instead fail when the CSFLE shared library
* could not be loaded.
*
* This is implied when `csflePath` is specified.
Comment thread
nbbeeken marked this conversation as resolved.
Outdated
*/
csfleRequired?: boolean;
/**
* Search paths for a CSFLE shared library to be used (instead of mongocryptd)
* @experimental
* Only for driver testing!
* @internal
*/
csfleSearchPaths?: string[];
Comment thread
nbbeeken marked this conversation as resolved.
};
Expand Down