-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3245 Support explicit queryable encryption #959
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5d4fe18
PYTHON-3245 Revert me: test with PYTHON-3285 branch of pymongocrypt
ShaneHarvey 54c7c6a
PYTHON-3245 sync prose test data
ShaneHarvey ec73b93
PYTHON-3245 Implement first prose test for Queryable Encryption
ShaneHarvey e0e54b8
PYTHON-3245 Use uuid_representation=unspecified in encryption tests
ShaneHarvey 042f979
PYTHON-3245 Add remaining prose tests
ShaneHarvey 557c5d4
PYTHON-3245 More uuid cleanup
ShaneHarvey c94dfdc
PYTHON-3245 Fix 1.3->4.2 docs
ShaneHarvey 3223051
PYTHON-3245 Validate index_key_id, add INDEXED/UNINDEXED
ShaneHarvey d7258bb
PYTHON-3245 Add QueryType enum
ShaneHarvey 8bfc6e3
PYTHON-3245 remove temp git clone change
ShaneHarvey 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
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
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,33 @@ | ||
| { | ||
| "escCollection": "enxcol_.default.esc", | ||
| "eccCollection": "enxcol_.default.ecc", | ||
| "ecocCollection": "enxcol_.default.ecoc", | ||
| "fields": [ | ||
| { | ||
| "keyId": { | ||
| "$binary": { | ||
| "base64": "EjRWeBI0mHYSNBI0VniQEg==", | ||
| "subType": "04" | ||
| } | ||
| }, | ||
| "path": "encryptedIndexed", | ||
| "bsonType": "string", | ||
| "queries": { | ||
| "queryType": "equality", | ||
| "contention": { | ||
| "$numberLong": "0" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "keyId": { | ||
| "$binary": { | ||
| "base64": "q83vqxI0mHYSNBI0VniQEg==", | ||
| "subType": "04" | ||
| } | ||
| }, | ||
| "path": "encryptedUnindexed", | ||
| "bsonType": "string" | ||
| } | ||
| ] | ||
| } |
30 changes: 30 additions & 0 deletions
30
test/client-side-encryption/etc/data/keys/key1-document.json
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,30 @@ | ||
| { | ||
| "_id": { | ||
| "$binary": { | ||
| "base64": "EjRWeBI0mHYSNBI0VniQEg==", | ||
| "subType": "04" | ||
| } | ||
| }, | ||
| "keyMaterial": { | ||
| "$binary": { | ||
| "base64": "sHe0kz57YW7v8g9VP9sf/+K1ex4JqKc5rf/URX3n3p8XdZ6+15uXPaSayC6adWbNxkFskuMCOifDoTT+rkqMtFkDclOy884RuGGtUysq3X7zkAWYTKi8QAfKkajvVbZl2y23UqgVasdQu3OVBQCrH/xY00nNAs/52e958nVjBuzQkSb1T8pKJAyjZsHJ60+FtnfafDZSTAIBJYn7UWBCwQ==", | ||
| "subType": "00" | ||
| } | ||
| }, | ||
| "creationDate": { | ||
| "$date": { | ||
| "$numberLong": "1648914851981" | ||
| } | ||
| }, | ||
| "updateDate": { | ||
| "$date": { | ||
| "$numberLong": "1648914851981" | ||
| } | ||
| }, | ||
| "status": { | ||
| "$numberInt": "0" | ||
| }, | ||
| "masterKey": { | ||
| "provider": "local" | ||
| } | ||
| } |
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,6 @@ | ||
| { | ||
| "$binary": { | ||
| "base64": "EjRWeBI0mHYSNBI0VniQEg==", | ||
| "subType": "04" | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
test/client-side-encryption/etc/data/keys/key2-document.json
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,30 @@ | ||
| { | ||
| "_id": { | ||
| "$binary": { | ||
| "base64": "q83vqxI0mHYSNBI0VniQEg==", | ||
| "subType": "04" | ||
| } | ||
| }, | ||
| "keyMaterial": { | ||
| "$binary": { | ||
| "base64": "HBk9BWihXExNDvTp1lUxOuxuZK2Pe2ZdVdlsxPEBkiO1bS4mG5NNDsQ7zVxJAH8BtdOYp72Ku4Y3nwc0BUpIKsvAKX4eYXtlhv5zUQxWdeNFhg9qK7qb8nqhnnLeT0f25jFSqzWJoT379hfwDeu0bebJHr35QrJ8myZdPMTEDYF08QYQ48ShRBli0S+QzBHHAQiM2iJNr4svg2WR8JSeWQ==", | ||
| "subType": "00" | ||
| } | ||
| }, | ||
| "creationDate": { | ||
| "$date": { | ||
| "$numberLong": "1648914851981" | ||
| } | ||
| }, | ||
| "updateDate": { | ||
| "$date": { | ||
| "$numberLong": "1648914851981" | ||
| } | ||
| }, | ||
| "status": { | ||
| "$numberInt": "0" | ||
| }, | ||
| "masterKey": { | ||
| "provider": "local" | ||
| } | ||
| } |
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,6 @@ | ||
| { | ||
| "$binary": { | ||
| "base64": "q83vqxI0mHYSNBI0VniQEg==", | ||
| "subType": "04" | ||
| } | ||
| } |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will conflict with Julius' auto encryption PR but it was required for the tests.