Skip to content

Commit cbe00b0

Browse files
committed
Try again with crypt_shared_lib_path
1 parent 91c07ea commit cbe00b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/encrypted_settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import os
22

3+
import Path
34
from mongodb_settings import * # noqa: F403
45
from pymongo.encryption import AutoEncryptionOpts
56

7+
crypt_shared_lib_path = Path("lib/mongo_crypt_v1.so").resolve()
8+
9+
610
DATABASES["encrypted"] = { # noqa: F405
711
"ENGINE": "django_mongodb_backend",
812
"NAME": "djangotests-encrypted",
913
"OPTIONS": {
1014
"auto_encryption_opts": AutoEncryptionOpts(
1115
key_vault_namespace="my_encrypted_database.keyvault",
1216
kms_providers={"local": {"key": os.urandom(96)}},
13-
# crypt_shared_lib_path="lib/mongo_crypt_v1.so",
17+
crypt_shared_lib_path=crypt_shared_lib_path,
1418
),
1519
"directConnection": True,
1620
},

0 commit comments

Comments
 (0)