Interface ClientEncryptionOptions

Additional settings to provide when creating a new ClientEncryption instance.

interface ClientEncryptionOptions {
    keyVaultClient?: MongoClient;
    keyVaultNamespace: string;
    kmsProviders?: KMSProviders;
    proxyOptions?: ProxyOptions;
    tlsOptions?: CSFLEKMSTlsOptions;
}

Properties

keyVaultClient?: MongoClient

A MongoClient used to fetch keys from a key vault. Defaults to client.

keyVaultNamespace: string

The namespace of the key vault, used to store encryption keys

kmsProviders?: KMSProviders

Options for specific KMS providers to use

proxyOptions?: ProxyOptions

Options for specifying a Socks5 proxy to use for connecting to the KMS.

tlsOptions?: CSFLEKMSTlsOptions

TLS options for kms providers to use.