CSFLE on Node .js windows

Hello,
we have Implemented MongoDB CSFLE by using .NET core and Java. currently our services are hosted on on-prem. As per new initiative, we plan to migrate our services from on-prem to AWS serverless (Lambda using node with type script). As a part of that, I have started doing POC to implement CSFLE using node.js on my windows machine. As per the wiki, we need to add this dependency “libmongocrypt” before add the package “mongodb-client-encryption”. but, I am not sure how to install and configure “libmongocrypt”. I am not getting proper documentation to do it. can someone please check and help me on this.

Mongo DB Enterprise version on my windows machine : 4.4
node version : 18
Wiki I am following : How to use MongoDB Client-Side Field Level Encryption (CSFLE) with Node.js | MongoDB

What you’ll need to install for automatic encryption is crypt_shared. It’s what we suggest these days and will probably do better with a serverless instance. The official documentation has a page on it: https://www.mongodb.com/docs/manual/core/csfle/reference/install-library/ [ UPDATED and fixed[

Hello @Joel_Odom, when we have implemented CSFLE for .net core and Java, we have used mongo enterprise version 6. which did not have crypt shared librarry. we have used “mongoCryptd”. we are trying to use same implementation in node.js. but, looks like it is not straight forward (or) proper steps are not available in WIKI. please suggest the steps to implement CSFLE in node.js with mongo enterprise version 6.0. As I told, I am struggling to find the steps to configure “libmongocrypt”.

@Joel_Odom , thanks for your response. but, the link you have shared gives 404 - page not found error.

My bad. I just fixed the link in the original post.

@Joel_Odom , can you please respond to my previous query. At this point, “crypt_shared” is not an option for us. please provide the steps to implement “CSFLE” using node js with mongoDB enterprise version 4.4 (or) 6. I did not understand how to configure “libmongocrypt”. without this I am not able to dowlload the package “mongodb-client-encryption”. please suggest the steps. thanks.

Can someone please help me on this… thanks in advance.

Hey @PrasannaVengadesan_santhanagopalan,

Sorry about the confusion, that article is incorrect. A separate installation of libmongocrypt is not necessary to use the Node driver with CSFLE.

You can follow the instructions in the official CSFLE documentation for an example of how to set up CSFLE with the Node driver: https://www.mongodb.com/docs/manual/core/csfle/install/ .

Hope that helps!