micronaut-mongodb
micronaut-mongodb copied to clipboard
Enable Micronaut + MongoDB AutoEncryption (CSFLE)
Issue description
Hi Team,
We are working on a micronaut project and trying to enable client-side field level encryption via mongodb. As per the Mongo Documentation, added the required settings in a customized Factory class called MongoConfig.java. But autoEncryption settings are not getting set in the MongoClient.
The main objective is to enable encryption, without writing our own customized encryption logic. As mongo provides CSFLE autoencryption, we are trying to utilize it.
@JGaya3 Looking at the log you provided, looks like uuidRepresentation
is not applied either from your settings. You specified .uuidRepresentation(STANDARD)
but logged settings show UNSPECIFIED
. Perhaps your factory is not working correctly and these settings are not being applied at all?
Hi @radovanradic , Yes seems like the factory class is not working as expected.