A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/manual-encryption/ below:

Queryable Encryption with Explicit Encryption - Database Manual

Explicit encryption provides fine-grained control over security, at the cost of increased complexity when configuring collections and writing code for MongoDB Drivers. With explicit encryption, you specify how to encrypt fields in your document for each operation you perform on the database, and you include this logic throughout your application.

Explicit encryption is available in the following MongoDB products:

ClientEncryption is an abstraction used across drivers and mongosh that encapsulates the Key Vault collection and KMS operations involved in explicit encryption.

To create a ClientEncryption instance, specify:

For more ClientEncryption options, see MongoClient Options for Queryable Encryption.

You must update read and write operations throughout your application such that your application encrypts fields before performing read and write operations.

To encrypt fields, use the encrypt method of your ClientEncryption instance. Specify the following:

Use the Indexed or Range algorithm if you specify a queryType on the field.

Indexed supports equality queries. Range supports range queries. Indexed and Range fields require an index on the server. The index is created by specifying the encryptedFields option in db.createCollection().

Note

Starting in MongoDB 8.0, the rangePreview Queryable Encryption algorithm is deprecated and removed. Use the Range algorithm instead.

If your Queryable Encryption collection uses rangePreview, you must drop the collection before you can upgrade to MongoDB 8.0.

To decrypt fields automatically, configure your MongoClient instance as follows:

Note Automatic Decryption in MongoDB Community Server

Automatic decryption is available in MongoDB Community Server. Automatic encryption requires MongoDB Enterprise or MongoDB Atlas.

Steps to enforce encryption of specific fields in a collection.

Indexed and Range fields require an index on the server. The index is created by specifying the encryptedFields option in db.createCollection().

If your MongoDB instance enforces the encryption of specific fields, any client performing Queryable Encryption with explicit encryption must encrypt those fields as specified. To learn how to set up server-side Queryable Encryption enforcement, see Encrypted Fields and Enabled Queries.

To learn more about Key Vault collections, Data Encryption Keys, and Customer Master Keys, see Encryption Keys and Key Vaults.

To learn more about KMS providers and kmsProviders objects, see KMS Providers.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4