Skip to content

Conversation

@PavelSafronov
Copy link
Contributor

@PavelSafronov PavelSafronov commented Dec 12, 2025

Description

Summary of Changes

Replace optional dependency on aws4 package with a minimal equivalent implementation.

What is the motivation for this change?

This helps us reduce our runtime dependencies, as part of https://jira.mongodb.org/browse/NODE-6601

Release Highlight

aws4 package no longer required for AWS authentication

The aws4 package is no longer required to use AWS authentication.

Double check the following

  • Lint is passing (npm run check:lint)
  • 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

@PavelSafronov PavelSafronov changed the title WIP: feat(NODE-5393): Migrate AWS signature v4 logic into driver feat(NODE-5393): Migrate AWS signature v4 logic into driver Dec 15, 2025
@PavelSafronov PavelSafronov marked this pull request as ready for review December 15, 2025 20:36
@PavelSafronov PavelSafronov requested a review from a team as a code owner December 15, 2025 20:36
@baileympearson baileympearson self-assigned this Dec 16, 2025
@baileympearson baileympearson added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Dec 16, 2025
- removed extraneous new types
- removed unnecessary AWS4 interface
- getHmacArray renamed
- removed unnecessary env-reading code
- added a bunch of comments about the sigv4 algorithm
- removed tests that did not pass in any credentials, we never do this
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

all good on my end 🙂 thanks for taking on the improvements!

Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

Just some minor comments. Nice work!

addaleax
addaleax previously approved these changes Jan 8, 2026
Copy link
Contributor

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

🚢

@baileympearson baileympearson merged commit 0f46db8 into mongodb:main Jan 12, 2026
29 checks passed
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.

5 participants