-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add kmip tests, use mongoCrypt snapshot #1406
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
@@ -128,6 +128,8 @@ public List<String> getKeyAltNames() { | |||
* omitted, the driver creates a random 96 byte KMIP Secret Data managed object.</li> | |||
* <li>endpoint: a String, the endpoint as a host with required port. e.g. "example.com:443". If endpoint is not provided, it | |||
* defaults to the required endpoint from the KMS providers map.</li> | |||
* <li>delegated: If true (recommended), the KMIP server must decrypt this key. If delegated is not provided, | |||
* defaults to false. </li> |
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.
The Javadoc for the 'delegated' parameter currently highlights only decryption, probably referencing the spec comment, delegated: Optional<Boolean> // If true, this key should be decrypted by the KMIP server
. However, the KMIP server is also involved in encrypting keys. For example, when we use the createDataKey() method to encrypt DEKs for storage in the database. The specification further also states that
If the delegated option is set to true (recommended), the KMIP server will instead perform encryption and
decryption locally
We should note in the Javadoc that when 'delegated' is set to true, the KMIP server manages both encryption and decryption.
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.
I noticed updates to legacy CSFLE tests in the following files: azureKMS.json
, gcpKMS.json
. (PR 1507) Could you share the rationale behind not including these changes in our current test suites?
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.
Added
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!
JAVA-5300
Copies tests, updates docs, and uses the (erroneously named) 1.8.0-SNAPSHOT which has the
delegated
feature available.See also, update/fix in: mongodb/specifications#1591