Description:
The FLE project will require enterprise documentation changes. With this change, you can create a Keystore object in the shell by calling
```
var mongo = new Mongo();
var keystore = mongo.getKeyStore();
```
The rest of the functionality is outlined in src/fle/shell/keystore.js in the enterprise module.
Engineering Ticket Description:
Write JS API to generate KMS keys, add/remove alt names, query keys, and delete keys
Proposed API:
class KeyStore {
|
createKey(keyAltName : string[]) : any {}
|
getKey(keyId : UUID) : any {}
|
deleteKey(keyId : UUID) : void {}
|
getKeys() : any[] {}
|
addKeyAlternateName(keyId : UUID, keyAltName : string) : any {}
|
removeKeyAlternateName(keyId : UUID, keyAltName : string) : any {}
|
};
|