Skip to content

INTPYTHON-527 Add Queryable Encryption config #318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from

Conversation

aclark4life
Copy link
Collaborator

@aclark4life aclark4life commented Jun 17, 2025

(this is a branch of #317 for convenience in providing a POC of QE config)

@aclark4life
Copy link
Collaborator Author

I'll redo this after transactions are merged but here you can see some helpers added to utils along with a failing test because I haven't installed encryption libs yet.

ERROR: test_queryable_encryption_config (backend_.utils.test_parse_uri.ParseURITests.test_queryable_encryption_config)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alex.clark/Developer/django-mongodb-cli/src/django-mongodb-backend/tests/backend_/utils/test_parse_uri.py", line 100, in test_queryable_encryption_config
    auto_encryption_options = get_auto_encryption_options("local")
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/alex.clark/Developer/django-mongodb-cli/src/django-mongodb-backend/django_mongodb_backend/utils.py", line 83, in get_auto_encryption_options
    auto_encryption_opts = AutoEncryptionOpts(
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/alex.clark/Developer/django-mongodb-cli/src/mongo-python-driver/pymongo/encryption_options.py", line 213, in __init__
    raise ConfigurationError(
pymongo.errors.ConfigurationError: client side encryption requires the pymongocrypt library: install a compatible version with: python -m pip install 'pymongo[encryption]'

@aclark4life aclark4life closed this by deleting the head repository Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants