-
Notifications
You must be signed in to change notification settings - Fork 28
INTPYTHON-527 Add Queryable Encryption support #329
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
Open
aclark4life
wants to merge
27
commits into
mongodb:main
Choose a base branch
from
aclark4life:INTPYTHON-527
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,027
−156
Open
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
36bd1e5
INTPYTHON-527 Add Queryable Encryption support
aclark4life 70c946b
encrypted fields map != encrypted fields
aclark4life cb3512c
Use dot separator
aclark4life 46ca9dc
Refactor tests
aclark4life 87b1dc9
Add embedding
aclark4life d39f3b3
Review feedback
aclark4life 3f8b5c2
remove EncryptedEmbeddedModel
timgraham 441c584
PatientRecord shouldn't be encrypted
timgraham c9cc301
fix linting of kms_provider() docstring line length
timgraham 332decb
Code review fixes
aclark4life 0317fba
Use EncryptionTestCase instead of TestCase
aclark4life e3da2f6
make atlas tests use encryption settings
timgraham fe790c7
try shared library
timgraham 2270058
try ubuntu 22.04 just to be sure
timgraham e38b496
Code review fixes
aclark4life 36c6bfd
Update QE guide with complete Python tutorial
aclark4life 86486eb
update version added to 5.2.2
aclark4life 59865f7
Add tests for EncryptedFieldMixin
aclark4life fc87e9f
Remove confusing paragraph about crypt shared
aclark4life 75873e9
Target 5.2.3 for release and require MongoDB 8
aclark4life 324c959
try Mongo 8.0.15 on CI
timgraham 13ed19a
Misc updates
aclark4life b23c4f2
Misc updates
aclark4life a0cd197
Kill the helper
aclark4life 65b96b2
Misc updates
aclark4life 80881fa
Add assertEncrypted to verify field data is binary
aclark4life 25e7da1
Fails on CI only
aclark4life File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
|
||
from mongodb_settings import * # noqa: F403 | ||
from pymongo.encryption import AutoEncryptionOpts | ||
|
||
DATABASES["encrypted"] = { # noqa: F405 | ||
"ENGINE": "django_mongodb_backend", | ||
"NAME": "djangotests-encrypted", | ||
"OPTIONS": { | ||
"auto_encryption_opts": AutoEncryptionOpts( | ||
key_vault_namespace="my_encrypted_database.keyvault", | ||
kms_providers={"local": {"key": os.urandom(96)}}, | ||
# crypt_shared_lib_path="lib/mongo_crypt_v1.so", | ||
), | ||
"directConnection": True, | ||
}, | ||
"KMS_CREDENTIALS": {}, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.