We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff8f8b commit 7d5e39bCopy full SHA for 7d5e39b
django_mongodb_backend/utils.py
@@ -1,4 +1,5 @@
1
import copy
2
+import os
3
import time
4
5
import django
@@ -33,7 +34,7 @@ def get_auto_encryption_options(crypt_shared_lib_path=None):
33
34
key_vault_database_name = "encryption"
35
key_vault_collection_name = "__keyVault"
36
key_vault_namespace = f"{key_vault_database_name}.{key_vault_collection_name}"
- kms_providers = {}
37
+ kms_providers = {"local": {"key": os.urandom(96)}}
38
return AutoEncryptionOpts(
39
key_vault_namespace=key_vault_namespace,
40
kms_providers=kms_providers,
0 commit comments