Quarkus creates the MongoClient for you and make it available via CDI.
MongoDB with Panache uses this MongoClient.
There is currently no way to provides an AutoEncryptionSettings
for the creation of this MongoClient so Client Side Encryption cannot be used.
You can open an enhancement request to Quarkus to provides a way to configure client side encryption for MongoDB. But be aware that this will not currently work in native mode as the mongocrypt library needed for client side encryption is a native library so will not works OOTB with GraalVM native images.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…