-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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-5944): make AWS session token optional #4002
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
durran
changed the title
fix(NODE-5944): make AWS token optional
fix(NODE-5944): make AWS session token optional
Feb 27, 2024
durran
added
the
Primary Review
In Review with primary reviewer, not yet ready for team's eyes
label
Feb 27, 2024
durran
approved these changes
Feb 27, 2024
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
Feb 27, 2024
5 tasks
aditi-khare-mongoDB
pushed a commit
that referenced
this pull request
Mar 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
According to spec:
The AWS_SESSION_TOKEN is optional, so we should not check for it when making temp credentials: https://github.com/mongodb/node-mongodb-native/blob/main/src/cmap/auth/mongodb_aws.ts
What is changing?
Do not throw the
MongoMissingCredentialsError('Could not obtain temporary MONGODB-AWS credentials')
exception when the AWS token is missing.Is there new documentation needed for these changes?
None
What is the motivation for this change?
NODE-5747
Release Highlight
The AWS token is now optional
Users may provide an
AWS_SESSION_TOKEN
as a client option or AWS configuration in addition to a username and password. But if the token is not provided, the driver won't throw an exception and let AWS SDK handle the request.Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript