Skip to content

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

Merged
durran merged 2 commits into
5.xfrom
NODE-5537-creds-conn-pool
Aug 15, 2023
Merged

durran merged 2 commits into
5.xfrom
NODE-5537-creds-conn-pool

Conversation

@nbbeeken

@nbbeeken nbbeeken commented Aug 14, 2023 •

Copy link
Copy Markdown
Contributor

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
@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

Development

Successfully merging this pull request may close these issues.

3 participants