Add CloudShell and environment variable credential support#301
Open
dap0am wants to merge 2 commits intoaws:masterfrom
Open
Add CloudShell and environment variable credential support#301dap0am wants to merge 2 commits intoaws:masterfrom
dap0am wants to merge 2 commits intoaws:masterfrom
Conversation
Implements CloudShell metadata endpoint support using IMDSv2-like flow with token-based authentication at localhost:1338. Also adds support for standard AWS environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN). Both credential providers are integrated into the existing credential chain with comprehensive test coverage. Addresses issue aws#285.
wangnyue
reviewed
Sep 29, 2025
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
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.
Summary
• Implements CloudShell metadata endpoint support using IMDSv2-like flow at localhost:1338
• Adds support for standard AWS environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN)
• Integrates both credential providers into the existing credential chain with comprehensive test coverage
Changes
Test Results
All tests pass (32 total: 20 existing + 12 new)
Test plan
Fixes #285