Skip to content

Commit 7d5e39b

Browse files
committed
"Fix" kms provider
1 parent eff8f8b commit 7d5e39b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django_mongodb_backend/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import copy
2+
import os
23
import time
34

45
import django
@@ -33,7 +34,7 @@ def get_auto_encryption_options(crypt_shared_lib_path=None):
3334
key_vault_database_name = "encryption"
3435
key_vault_collection_name = "__keyVault"
3536
key_vault_namespace = f"{key_vault_database_name}.{key_vault_collection_name}"
36-
kms_providers = {}
37+
kms_providers = {"local": {"key": os.urandom(96)}}
3738
return AutoEncryptionOpts(
3839
key_vault_namespace=key_vault_namespace,
3940
kms_providers=kms_providers,

0 commit comments

Comments
 (0)