Why is it not possible to create a schema map that will allow me to encrypt a field by sourcing the keyid from another property in the document? We’re working with a multi-tenant application. Every doc in a collection has a TenantId which is also our key id.
Its a pain to encrypt everything manually. The auto-decryption works fine, would be great to have auto-encryption work this was too.
The same could also be used for queryable encryption.
Hi, Vishal. I’m the Product Manager for encryption at MongoDB. Thanks for the suggestion. It’s an interesting idea to consider as it’s not uncommon for devs to create per-document keys like this. I will keep it in mind.