-
Notifications
You must be signed in to change notification settings - Fork 245
DRIVERS-3213 add text search explicit encryption API and tests #1824
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 18 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9126006
draft options for QE text API
kevinAlbs 10d34d7
tests draft
mdb-ad a36e1d0
update CHANGELOG and server support history
kevinAlbs 3f08d6d
refer to text options in other sections
kevinAlbs 8b74c4a
fix comment
kevinAlbs 7bacf36
format
kevinAlbs 541c358
prefix and suffix tests
mdb-ad 6b560e1
encrypt just the value, not query
mdb-ad 21ad2cc
format
mdb-ad 59bb568
Merge remote-tracking branch 'kevin/wip-explicit-api' into text-search
mdb-ad 1169224
changelog
mdb-ad 6d144d4
wording suggestions
mdb-ad eaa1d25
input field needs dollar sign
mdb-ad 8605a54
use separate collections for prefix/suffix and substring
mdb-ad 0ffe96c
format
mdb-ad f2b2478
format
mdb-ad 190bf16
move per index opts
mdb-ad 6a65287
require libmongocrypt 1.15.1
mdb-ad bfbac44
simplifications
mdb-ad 8c4d5c8
test structure suggestions
mdb-ad c0ad540
contentionFactor required test
mdb-ad a981543
remove redundant textOpts section
mdb-ad 848cdf2
majority write concern
mdb-ad 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
38 changes: 38 additions & 0 deletions
38
source/client-side-encryption/etc/data/encryptedFields-prefix-suffix.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,38 @@ | ||
{ | ||
"fields": [ | ||
{ | ||
"keyId": { | ||
"$binary": { | ||
"base64": "EjRWeBI0mHYSNBI0VniQEg==", | ||
"subType": "04" | ||
} | ||
}, | ||
"path": "encryptedText", | ||
"bsonType": "string", | ||
"queries": [ | ||
{ | ||
"queryType": "prefixPreview", | ||
"strMinQueryLength": { | ||
"$numberInt": "2" | ||
}, | ||
"strMaxQueryLength": { | ||
"$numberInt": "10" | ||
}, | ||
"caseSensitive": true, | ||
"diacriticSensitive": true | ||
}, | ||
{ | ||
"queryType": "suffixPreview", | ||
"strMinQueryLength": { | ||
"$numberInt": "2" | ||
}, | ||
"strMaxQueryLength": { | ||
"$numberInt": "10" | ||
}, | ||
"caseSensitive": true, | ||
"diacriticSensitive": true | ||
} | ||
] | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
source/client-side-encryption/etc/data/encryptedFields-substring.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 @@ | ||
{ | ||
"fields": [ | ||
{ | ||
"keyId": { | ||
"$binary": { | ||
"base64": "EjRWeBI0mHYSNBI0VniQEg==", | ||
"subType": "04" | ||
} | ||
}, | ||
"path": "encryptedText", | ||
"bsonType": "string", | ||
"queries": [ | ||
{ | ||
"queryType": "substringPreview", | ||
"strMaxLength": { | ||
"$numberInt": "10" | ||
}, | ||
"strMinQueryLength": { | ||
"$numberInt": "2" | ||
}, | ||
"strMaxQueryLength": { | ||
"$numberInt": "10" | ||
}, | ||
"caseSensitive": true, | ||
"diacriticSensitive": true | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.
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.