Skip to content

RUBY-3226 Update libmongocrypt payloads to new QE protocol #2718

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 13 commits into from
May 25, 2023

Conversation

jamis
Copy link
Contributor

@jamis jamis commented May 19, 2023

Bumps libmongocrypt to 1.8.0 and updates the spec files required by both RUBY-3226 and RUBY-3211. (There was significant overlap between the two tickets, and they wound up being interdependent.)

There is some noise in the prose specs from updating the specs to satisfy rubocop. The primary things to look for when reviewing this PR are:

  • Prose specs have been updated to specify min_server_version of 7.0.0-rc0.
  • The eccCollection collection is no longer created (per the updated spec). See spec/support/crypt/encrypted_fields/encryptedFields.json and QueryableEncryption#emm_collections.
  • Encrypted collections are explicitly disallowed on older servers (pre-7.0). See lib/mongo/collection/queryable_encryption.rb.
  • spec/runners/transactions/test.rb was changed to avoid a hard-coded comparison on a YAML spec filename (which caused a mysterious failure when the fle2 filenames changed to fle2v2). The new API allows you to specify a Proc instance as expectations_bson_types, and the proc is then called with the test instance as an argument. To see this in practice, see spec/spec_tests/client_side_encryption_spec.rb.

There are some spec failures, but I can't reproduce them locally. I've added a separate ticket for those, here: https://jira.mongodb.org/browse/RUBY-3265

Ref: https://jira.mongodb.org/browse/RUBY-3226, https://jira.mongodb.org/browse/RUBY-3211

@jamis jamis requested a review from comandeo May 23, 2023 16:49
@jamis jamis marked this pull request as ready for review May 23, 2023 16:50
@jamis jamis merged commit fcedc87 into mongodb:master May 25, 2023
@jamis jamis deleted the 3226-new-qe-protocol branch May 25, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants