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 24c86e1 commit 3b472f2Copy full SHA for 3b472f2
.github/workflows/mongodb_settings.py
@@ -1,5 +1,6 @@
1
import os
2
3
+from pymongo.encryption import AutoEncryptionOpts
4
from pymongo.uri_parser import parse_uri
5
6
if mongodb_uri := os.getenv("MONGODB_URI"):
@@ -29,7 +30,18 @@
29
30
"NAME": "djangotests-other",
31
"OPTIONS": {"directConnection": True},
32
},
- "encrypted": {},
33
+ "encrypted": {
34
+ "ENGINE": "django_mongodb_backend",
35
+ "NAME": "djangotests-encrypted",
36
+ "OPTIONS": {
37
+ "auto_encryption_opts": AutoEncryptionOpts(
38
+ key_vault_namespace="encrypted.keyvault",
39
+ kms_providers={
40
+ "local": {"key": os.urandom(96)},
41
+ },
42
+ )
43
44
45
}
46
47
0 commit comments