mongocrypt | An encryption library for node.js | Runtime Evironment library
kandi X-RAY | mongocrypt Summary
kandi X-RAY | mongocrypt Summary
MongoCrypt is a service to encrypt and decrypt your data stored in a MongoDB database. It was also designed with these principles in mind:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mongocrypt
mongocrypt Key Features
mongocrypt Examples and Code Snippets
Community Discussions
Trending Discussions on mongocrypt
QUESTION
I have been working on MongoDB CSFLE (Client-Side Field-Level Encryption) for which there is a dependency in my spring boot project mongodb-crypt-1.0.1
. For security reasons, the /tmp
partition is mounted as noexec
on Ubuntu 16.04 OS running on an EC2. The application startup fails with the following stack trace:
ANSWER
Answered 2020-Apr-27 at 05:45As far as I can tell the crypto parts use JNA and in particular use it to extract libmongocrypt.so into a temporary directory by default. The relevant documentation I believe is https://github.com/java-native-access/jna/blob/master/www/GettingStarted.md.
I suggest trying:
- Setting
jna.library.path
to a path that is on a filesystem with execution allowed (and copying libmongocrypt.so manually there?). - If this doesn't work, try downloading libmongocrypt.so manually and placing it into a path that your OS can load libraries from without configuration. The download instructions should be the same as for Ruby driver which are here, use the
nocrypto
version of libmongocrypt.
Edit: jna.tmpdir
seems more appropriate per the comment.
QUESTION
System.BadImageFormatException: 'Could not load file or assembly 'mongocrypt' or one of its dependencies. The module was expected to contain an assembly manifest.'
I have a project that runs Hangfire 1.7.5 with MongoDB 2.9.1.0. This project is used as a backend engine to perform various types of work.
In order to create endpoints for outside systems to call this engine, we have another project that uses the same versions of Hangfire and MongoDB to connect and pass in the jobs for processing.
I upgraded Hangfire and Mongo to the latest versions, 1.7.9 and 2.10.1.0 respectively in all the projects that were using these dlls. Using Visual Studio, when I run the web projects, I keep getting the above mentioned error. I get these like 4 to 5 times before the ASP.Net site loads up and allows me to access anything I need, including the data that is accessed via MongoDB. Just an inconvenience but still an exception when loading project.
I know that architecture of the CPUs might cause the System.BadImageFormatException but nothing in that sense has been changed. I am running everything on .net 4.6.1 and everything continues to run on AnyCPU configuration. If I change all these projects to x64 or x86, one or the other thing stops working. mongocrypt error continues to occur regardless of the CPU architecture.
I cant find anything on google or SO regarding mongocrypt. Any ideas?
...ANSWER
Answered 2020-Feb-11 at 13:13Same thing happened to us. It appears that in v2.10.0 a new dependency library was introduced libmongocrypt that causes this error.
Try to go back to v2.9.3 to workaround this issue until it is fixed by mongodb programmers.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mongocrypt
Install with npm - mongocrypt will install mongodb automatically after its setup
Require mongocrypt & connect to your database
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page