-
Notifications
You must be signed in to change notification settings - Fork 91
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
MONGOCRYPT-572 remove QE-V1 code and tests #934
Open
kevinAlbs
wants to merge
15
commits into
mongodb:master
Choose a base branch
from
kevinAlbs:try2.drop-qev2.M723
base: master
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.
Conversation
This file contains 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
`mongocrypt_setopt_fle2v2` can only be called privately. It is only used in now-defunct tests of QEv1.
QEv2 does not append `deleteTokens`
Update payloads to V2 payloads. Remove `eccCollection`. The `eccCollection` is not used in QEv2.
v1 tests were converted to v2. v1 is no longer needed.
The `eccCollection` is unused in QEv2
Edges are sent for range payloads. Tested elsewhere. Redundant test is soon to be removed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Resolves MONGOCRYPT-572. Verified with this patch build.
Background & Motivation
MongoDB 7.0 dropped QE-V1 and added stable support of QE-V2 (SPM-2972). MONGOCRYPT-561 makes QE-V2 the default and prevents using QE-V1 with public API. This PR removes code for QE-V1 and updates tests. No behavior change is expected when using the public API. The removal is intended to ease implementation of MONGOCRYPT-723.
Tests explicitly decrypting each payload type are added. This is intended to serve as a reference and add missing test coverage for decrypting QE-V2 payloads.
The defunct
mongocrypt_setopt_fle2v2
is removed.mongocrypt_setopt_fle2v2
was private API only used in outdated tests of the QE-V1 protocol.Generating
deleteTokens
is now removed.deleteTokens
are not generated for QE-V2.References to the
eccCollection
in tests are removed. TheeccCollection
was needed for QE-V1 but is not used in QE-V2 (SERVER-75683).Test payloads are updated from V1 to V2 as needed. dump_payload can be used to identify a payload:
This script was used to find and unused JSON test files. Unused test files were removed with one exception:
test/data/keys/12345678123498761234123456789014-local-document.json
was kept for consistency with other keys in thetest/data/keys
directory.This PR notably does not remove the Range-V1 protocol. Removing RangeV1 is tracked in MONGOCRYPT-711.