-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Client Side Encryption
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
This ticket was split from DRIVERS-3325, please see that ticket for a detailed description.
Additional context, target user experience:
Today — keyAltName works in explicit encryption but not in encryptedFieldsMap:
// explicit encryption — keyAltName supported today await clientEncryption.encrypt(value, { keyAltName: "ssn-key", algorithm: "Unindexed" }); // auto encryption — keyAltName NOT supported, must use a UUID const client = new MongoClient(uri, { autoEncryption: { encryptedFieldsMap: { "mydb.users": { fields: [{ path: "ssn", bsonType: "string", keyId: new UUID("a5f3...") }] } } } });
Proposed — allow keyAltName in encryptedFieldsMap to match the explicit encryption API:
const client = new MongoClient(uri, { autoEncryption: { encryptedFieldsMap: { "mydb.users": { fields: [{ path: "ssn", bsonType: "string", keyAltName: "ssn-key" }] } } } });
- depends on
-
MONGOCRYPT-858 Release 1.18.0
-
- Backlog
-
- split from
-
DRIVERS-3325 Allow keyAltName in encryptedFieldsMap
-
- Implementing
-