-
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
Conversation
.evergreen/run-tests.sh
Outdated
|
|
||
| # TODO: Test with 'pip install pymongocrypt' | ||
| git clone --branch master https://github.com/mongodb/libmongocrypt.git libmongocrypt_git | ||
| git clone --branch PYTHON-3285 https://github.com/ShaneHarvey/libmongocrypt.git libmongocrypt_git |
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 needs to be removed once mongodb/libmongocrypt#358 is merged.
| kms_tls_options: Optional[Mapping[str, Any]] = None, | ||
| crypt_shared_lib_path: Optional[str] = None, | ||
| crypt_shared_lib_required: bool = False, | ||
| bypass_query_analysis: bool = False, |
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.
| SPEC_PATH = os.path.join(BASE, "spec") | ||
|
|
||
| OPTS = CodecOptions(uuid_representation=STANDARD) | ||
| OPTS = CodecOptions() |
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.
uuid_representation=STANDARD is no longer needed now that we decode uuid's to Binary by default.
| with self.assertRaisesRegex(EncryptionError, "IP address mismatch|wronghost"): | ||
| with self.assertRaisesRegex( | ||
| EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch" | ||
| ): |
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.
IPAddressMismatch is included in the error when pyopenssl is installed.
blink1073
left a comment
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.
LGTM!
|
|
||
| class TestEncryptedBulkWrite(BulkTestBase, EncryptionIntegrationTest): | ||
| def test_upsert_uuid_standard_encrypte(self): | ||
| def test_upsert_uuid_standard_encrypt(self): |
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.
Haha nice catch
PYTHON-3245 Implement explicit queryable encryption.
Depends on mongodb/libmongocrypt#358
Implements the prose test here: https://github.com/mongodb/specifications/tree/d4c9432c4b4425fd3dcc0dad0f65d954e7e6e1e4/source/client-side-encryption/tests#explicit-encryption