Settings

The document describes Django settings for MongoDB Backend beyond Django’s built-in settings.

Queryable Encryption

An inner option of DATABASES configures Key Management Service (KMS) credentials for Queryable Encryption:

KMS_CREDENTIALS

Added in version 6.0.1.

Default: not defined

A dictionary of Key Management Service (KMS) credential key-value pairs. These credentials are required to access your KMS provider (such as AWS KMS, Azure Key Vault, or GCP KMS) for encrypting and decrypting data using Queryable Encryption.

The keys for each provider are documented under the master_key parameter of create_data_key(). For an example, see Configuring a Key Management Service (KMS).