We are using mongo db client side field level automatic encryption in enterprise mongodb 4.2 in Java environment. In developer environment this are working as expected. Developer started the mongocryptd process locally in his machine and end to end is working ok.
However, in integration environment administrator wants to run the mongocryptd process remotely (not in the application server machine) and wants application to use it from remote by specifying the remote url in mongocryptdURL extra options while creating the mongo encrypted client. administrator is suggesting to use “mongodb://remote-machine-address:27020” in :mongocryptdURL. And he wants to run the mongocryptd process remotely in remote-machine-address.
So, our question are.
(a) Is it possible to use such setup ? Can mongocryptd process run in a remote machine and the mongocryptd driver jar can access it remotely. Or it must run locally in same machine where the jvm is.
(b) If it can run remotely, then what steps we have to do ?