Skip to content

Commit d6e6338

Browse files
committed
feat(NODE-3777): add csfle kmip support
1 parent 30f2a2d commit d6e6338

File tree

12 files changed

+5103
-3
lines changed

12 files changed

+5103
-3
lines changed

.evergreen/run-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ if [[ -z "${CLIENT_ENCRYPTION}" ]]; then
4141
unset AWS_ACCESS_KEY_ID;
4242
unset AWS_SECRET_ACCESS_KEY;
4343
else
44-
npm install mongodb-client-encryption@">=2.0.0-beta.0"
44+
if [[ ! -d ${PROJECT_DIRECTORY}/node_modules/mongodb-client-encryption ]]; then
45+
npm install mongodb-client-encryption@">=2.0.0-beta.0"
46+
fi
4547
pip install --upgrade boto3
4648

4749
# Get access to the AWS temporary credentials:

src/deps.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,17 @@ export interface AutoEncryptionOptions {
233233
*/
234234
endpoint?: string | undefined;
235235
};
236+
/**
237+
* Configuration options for using 'kmip' as your KMS provider
238+
*/
239+
kmip?: {
240+
/**
241+
* The output endpoint string.
242+
* The endpoint consists of a hostname and port separated by a colon.
243+
* E.g. "example.com:123". A port is always present.
244+
*/
245+
endpoint?: string;
246+
};
236247
};
237248
/**
238249
* A map of namespaces to a local JSON schema for encryption

0 commit comments

Comments
 (0)