-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Client Side Encryption
Use Case
The expected usage for automatic credential fetching is:
clientEncryption = new ClientEncryption(keyVaultClient, { keyVaultClient, keyVaultNamespace: 'keyvault.datakeys', kmsProviders: { gcp: {} } });
The following TS compiler error is shown:
Type '{}' is not assignable to type '{ email: string; privateKey: string | Buffer; endpoint?: string | undefined; } | { accessToken: string; } | undefined'.
AC
- Update the definitions to allow for an empty dictionary in "aws", "gcp",
and "azure" - Leave "azure" unchanged, it should be updated in the ticket that adds support for the auto credential fetching
- The same will need to be done in the driver, added to
NODE-5050