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 91c07ea commit cbe00b0Copy full SHA for cbe00b0
.github/workflows/encrypted_settings.py
@@ -1,16 +1,20 @@
1
import os
2
3
+import Path
4
from mongodb_settings import * # noqa: F403
5
from pymongo.encryption import AutoEncryptionOpts
6
7
+crypt_shared_lib_path = Path("lib/mongo_crypt_v1.so").resolve()
8
+
9
10
DATABASES["encrypted"] = { # noqa: F405
11
"ENGINE": "django_mongodb_backend",
12
"NAME": "djangotests-encrypted",
13
"OPTIONS": {
14
"auto_encryption_opts": AutoEncryptionOpts(
15
key_vault_namespace="my_encrypted_database.keyvault",
16
kms_providers={"local": {"key": os.urandom(96)}},
- # crypt_shared_lib_path="lib/mongo_crypt_v1.so",
17
+ crypt_shared_lib_path=crypt_shared_lib_path,
18
),
19
"directConnection": True,
20
},
0 commit comments