Skip to content

DRIVERS-3106 support automatic encryption in unified tests #1756

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 29 commits into from
Mar 17, 2025

Conversation

mdb-ad
Copy link
Contributor

@mdb-ad mdb-ad commented Feb 12, 2025

Changes:

  • Introduce schema version 1.23
  • Add autoEncryptOpts to client entity
  • Add encryptedFields to collection entity
  • POC tests for QE

C driver implementation with tests passing: https://spruce.mongodb.com/version/67d1090e4ba7ad0007d78603/

mdb-ad and others added 6 commits February 11, 2025 19:01

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt
@mdb-ad mdb-ad requested review from a team as code owners February 12, 2025 03:03
@mdb-ad mdb-ad requested review from alcaeus, katcharov, jmikola and kevinAlbs and removed request for a team, alcaeus and katcharov February 12, 2025 03:03

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt
@mdb-ad mdb-ad requested a review from kevinAlbs February 13, 2025 02:24
@mdb-ad
Copy link
Contributor Author

mdb-ad commented Feb 13, 2025

lint failure is due to a flaky external URL

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt

Verified

This commit was signed with the committer’s verified signature.
jhpratt Jacob Pratt
@mdb-ad mdb-ad requested a review from kevinAlbs February 27, 2025 07:52
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exciting. Can you check that new tests pass in the C driver and link to the branch? That may verify tests work, and serve as a reference for other implementers.

mdb-ad and others added 7 commits February 28, 2025 11:37
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
@mdb-ad mdb-ad requested a review from kevinAlbs March 12, 2025 04:13
@mdb-ad mdb-ad merged commit 52a076b into mongodb:master Mar 17, 2025
4 of 5 checks passed
[initialData](#initialData).
- `key_vault_data` can be expressed via [initialData](#initialData)
- `autoEncryptOpts` will need to be specified when defining a client entity. Preparation of this field may require
reading AWS credentials from environment variables.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the addition of autoEncryptOpts was the only change introduced in this PR.

Were the other changes not required? If so, why not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • key_vault_data doesn't need to be specified as it's equivalent to putting the key documents in initialData.
  • Reading AWS variables is already done for clientEncryption entities so no extra changes are needed.

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.

None yet

3 participants