Skip to content
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

Update field-level-encryption.md #15272

Merged
merged 2 commits into from
Mar 3, 2025
Merged

Conversation

dphrag
Copy link
Contributor

@dphrag dphrag commented Feb 25, 2025

Summary

As of version 6 of the mongodb driver, all useful public ClientEncryption APIs formerly exposed from mongodb-client-encryption have been moved into the driver and should now be imported directly from the driver.

Added keyAltNames as an example as it is useful for doing key lookups.

Examples

None

As of version 6 of the mongodb driver, ClientEncryption all useful public APIs formerly exposed from mongodb-client-encryption have been moved into the driver and should now be imported directly from the driver.

Added keyAltNames as an example as it is useful for doing key lookups.
@hasezoey hasezoey added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Feb 26, 2025
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM, reference

@@ -39,9 +39,9 @@ Keep in mind that the following example is a simple example to help you get star
The encryption key in the following example is insecure; MongoDB recommends using a [KMS](https://www.mongodb.com/docs/v5.0/core/security-client-side-encryption-key-management/).

```javascript
const { ClientEncryption } = require('mongodb-client-encryption');
const { ClientEncryption } = require('mongodb');
// const { ClientEncryption } = require('mongodb-client-encryption'); As of version 6, ClientEncryption is moved to main mongodb driver.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I will remove this commented out code, but otherwise LGTM

@vkarpov15 vkarpov15 added this to the 8.12 milestone Mar 3, 2025
@vkarpov15 vkarpov15 merged commit 64b27bc into Automattic:master Mar 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants