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

fix(NODE-5537): remove credentials from ConnectionPoolCreatedEvent options #3813

Merged
merged 2 commits into from Aug 15, 2023

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Aug 14, 2023

Description

What is changing?

  • Omit credentials from ConnectionPoolCreatedEvent if they exist
Is there new documentation needed for these changes?

No

Release Highlight

Remove credential availability on ConnectionPoolCreatedEvent

In order to avoid mistakenly printing credentials the ConnectionPoolCreatedEvent will replace the credentials option with an empty object. The credentials are still accessble via MongoClient options: client.options.credentials.

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

@nbbeeken nbbeeken marked this pull request as ready for review August 14, 2023 20:17
@durran durran self-assigned this Aug 15, 2023
@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Aug 15, 2023
durran
durran previously approved these changes Aug 15, 2023
@durran durran added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Aug 15, 2023
@durran durran merged commit 4cf1e96 into 5.x Aug 15, 2023
1 of 3 checks passed
@durran durran deleted the NODE-5537-creds-conn-pool branch August 15, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
3 participants