Skip to content

docs(NODE-6458): document CSOT for explicit encryption #4302

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 4 commits into from
Nov 1, 2024

Conversation

baileympearson
Copy link
Contributor

Description

What is changing?

Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

Fill in title or leave empty for no highlight

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

* ```
*
* If `timeoutMS` is configured on the provided client, the client's timeoutMS value
* will be used unless `timeoutMS` is also provided as a separate option.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* will be used unless `timeoutMS` is also provided as a separate option.
* will be used unless `ClientEncryptionOptions.timeoutMS` is also provided as a separate option.

This is a bit clearer to me considering we're using timeoutMS to refer to both ClientEncryptionOptions.timeoutMS and MongoClient.options.timeoutMS

* ```typescript
* const client = new MongoClient('<uri>', { timeoutMS: 2_000 });
*
* // timeoutMS is set to 1_000
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* // timeoutMS is set to 1_000
* // clientEncryptionOptions.timeoutMS overrides the client's timeoutMS and 1_000 is used as the timeoutMS for the ClientEncryption object

* await clientEncryption.createDataKey('local');
* ```
*
* If `timeoutMS` is configured on the provided client, the client's timeoutMS value
Copy link
Contributor

Choose a reason for hiding this comment

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

``

Suggested change
* If `timeoutMS` is configured on the provided client, the client's timeoutMS value
* If `timeoutMS` is configured on the provided client, the client's `timeoutMS` value

@aditi-khare-mongoDB aditi-khare-mongoDB added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Oct 31, 2024
@aditi-khare-mongoDB aditi-khare-mongoDB self-assigned this Oct 31, 2024
@aditi-khare-mongoDB aditi-khare-mongoDB merged commit d23cd78 into NODE-6090 Nov 1, 2024
15 of 26 checks passed
@aditi-khare-mongoDB aditi-khare-mongoDB deleted the document-fle branch November 1, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Primary Review In Review with primary reviewer, not yet ready for team's eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants