Skip to content

Commit ed9cb3c

Browse files
committed
try shared library
1 parent 70a5f73 commit ed9cb3c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/encrypted_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"auto_encryption_opts": AutoEncryptionOpts(
1111
key_vault_namespace="my_encrypted_database.keyvault",
1212
kms_providers={"local": {"key": os.urandom(96)}},
13+
crypt_shared_lib_path="mongo_crypt_v1.so",
1314
),
1415
"directConnection": True,
1516
},

.github/workflows/test-python-atlas.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
run: cp .github/workflows/*_settings.py django_repo/tests/
5050
- name: Copy the test runner file
5151
run: cp .github/workflows/runtests.py django_repo/tests/runtests_.py
52+
- name: Download crypt shared
53+
run: |
54+
wget https://downloads.mongodb.com/linux/mongo_crypt_shared_v1-linux-x86_64-enterprise-ubuntu2204-7.0.25.tgz
55+
tar -xvzf mongo_crypt_shared_v1-linux-x86_64-enterprise-ubuntu2204-7.0.25.tgz lib/mongo_crypt_v1.so
56+
cp lib/mongo_crypt_v1.so django_repo/
5257
- name: Start local Atlas
5358
working-directory: .
5459
run: bash .github/workflows/start_local_atlas.sh mongodb/mongodb-atlas-local:7

0 commit comments

Comments
 (0)