I am using the Java driver.
I have successfully set up my KMS key store to store my master key.
I am using it to create DEK’s in our MongoDB key store on our cluster.
I have successfully encrypted/decrypted FIELDS using the DEKS.
I have seen and read in several presentations that encryption can be applied to a COLLECTION and DOCUMENT, but NONE of the documentation or example show how to accomplish this. All of them define how to encrypt individual field defined in the jsonschema.
So is there a way to configure Enterprise encryption to encrypt documents written too/read from a collection or entire documents without having to explicitly defined the field names in the jasonschema ?
If so i would LOVE to pointed in the direction of samples/examples. I reviewed and implemented the code from the Auto Encryption Settings tour, but it does NOT actually encrypt the data. Just writes the data in plain text.
Thanks.