-
Notifications
You must be signed in to change notification settings - Fork 246
DRIVERS-3207: Custom AWS credential providers execute earlier #1838
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
Open
durran
wants to merge
8
commits into
master
Choose a base branch
from
DRIVERS-3207
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+71
−11
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
37dd055
DRIVERS-3207: Custom AWS credential providers execute first
durran e5534c5
chore: update auth changelog
durran 0afb4e1
chore prose test
durran d9de2c0
chore: custom provider comments
durran 68fd633
chore: comments
durran 94c7a1f
fix: lint
durran 1859b77
fix: lint
durran 5ea963f
chore: relative link
durran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -959,6 +959,11 @@ Examples are provided below. | |||||||||||||
Drivers MUST allow the user to specify an AWS session token for authentication with temporary credentials. | ||||||||||||||
- AWS_CREDENTIAL_PROVIDER | ||||||||||||||
Drivers MAY allow the user to specify a custom credential provider object or function. See | ||||||||||||||
[Custom Credential Providers](#custom-credential-providers) | ||||||||||||||
Comment on lines
+964
to
+965
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would this be similar to specifications/source/auth/auth.md Lines 1298 to 1303 in 3dc84d1
|
||||||||||||||
#### Obtaining Credentials | ||||||||||||||
Drivers will need AWS IAM credentials (an access key, a secret access key and optionally a session token) to complete | ||||||||||||||
|
@@ -1006,8 +1011,8 @@ Drivers MAY expose API for default providers for the following scenarios when ap | |||||||||||||
The order in which Drivers MUST search for credentials is: | ||||||||||||||
|
||||||||||||||
1. The URI | ||||||||||||||
2. Environment variables | ||||||||||||||
3. A custom AWS credential provider if the driver supports it. | ||||||||||||||
2. A custom AWS credential provider if the driver supports it. | ||||||||||||||
3. Environment variables | ||||||||||||||
4. Using `AssumeRoleWithWebIdentity` if `AWS_WEB_IDENTITY_TOKEN_FILE` and `AWS_ROLE_ARN` are set. | ||||||||||||||
5. The ECS endpoint if `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI` is set. Otherwise, the EC2 endpoint. | ||||||||||||||
|
||||||||||||||
dariakp marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
|
@@ -2157,6 +2162,8 @@ practice to avoid this. (See | |||||||||||||
|
||||||||||||||
## Changelog | ||||||||||||||
|
||||||||||||||
- 2025-09-10: Update precedence of MONGODB-AWS credential fetching behaviour. | ||||||||||||||
|
||||||||||||||
- 2025-01-29: Add support for custom AWS credential providers. | ||||||||||||||
|
||||||||||||||
- 2024-10-02: Add Kubernetes built-in OIDC provider integration. | ||||||||||||||
|
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.