Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Client-Side Field Level Encryption using C# in Linux

There is an ETA for Client-Side Field Level Encryption for Linux in C# Drivers? I need it! Thanks

Hi @Giorgio_Tresoldi, and welcome to the forum,

This should work with MongoDB .NET/C# driver that is compatible with v4.2 (version 2.10+). See github.com/mongodb-labs/field-level-encryption-sandbox/c-sharp for an example code.

See also Client Side Field Level Encryption Guide.

If you’re encountering an issue trying to perform CSFLE in Linux, could you provide:

  • MongoDB .NET/C# driver version
  • MongoDB server version
  • Any relevant code snippets
  • Any error messages that you’re encountering

Regards,
Wan.

Here https://mongodb.github.io/mongo-csharp-driver/2.10/reference/driver/crud/client_side_encryption/ are specified that “Client-side field level encryption is supported only on Windows.” but my project works on linux docker containers.

Hi @Giorgio_Tresoldi,

Unfortunately you’re correct, although there is a work around there are some tasks that needed to be completed. This is currently scheduled to be worked on, please feel free to add yourself as a watcher or up-vote the issue tracker CSHARP-2715: FLE on Linux/Mac to receive notifications for progress on the ticket.

Regards,
Wan.

1 Like