-
Notifications
You must be signed in to change notification settings - Fork 246
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
Conversation
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
lint failure is due to a flaky external URL |
source/unified-test-format/tests/valid-pass/poc-queryable-encryption.yml
Show resolved
Hide resolved
source/unified-test-format/tests/valid-pass/poc-queryable-encryption.yml
Outdated
Show resolved
Hide resolved
source/unified-test-format/tests/valid-pass/poc-queryable-encryption.yml
Outdated
Show resolved
Hide resolved
source/client-side-encryption/tests/unified/fle2v2-EncryptedFields-vs-EncryptedFieldsMap.yml
Outdated
Show resolved
Hide resolved
source/client-side-encryption/tests/unified/fle2v2-EncryptedFields-vs-EncryptedFieldsMap.yml
Outdated
Show resolved
Hide resolved
fc37727
to
b1f57f9
Compare
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.
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.
source/client-side-encryption/tests/unified/fle2v2-BypassQueryAnalysis.yml
Show resolved
Hide resolved
source/client-side-encryption/tests/unified/fle2v2-BypassQueryAnalysis.yml
Outdated
Show resolved
Hide resolved
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
source/client-side-encryption/tests/unified/fle2v2-BypassQueryAnalysis.yml
Outdated
Show resolved
Hide resolved
[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. |
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.
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?
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.
key_vault_data
doesn't need to be specified as it's equivalent to putting the key documents ininitialData
.- Reading AWS variables is already done for
clientEncryption
entities so no extra changes are needed.
Changes:
autoEncryptOpts
to client entityencryptedFields
to collection entityC driver implementation with tests passing: https://spruce.mongodb.com/version/67d1090e4ba7ad0007d78603/