Repository navigation
feat(cli): resolve Bedrock credentials from AWS SSO - #68
Merged
Merged
Conversation
Co-authored-by: OpenAI Codex <noreply@openai.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
johnnyhuy
deleted the
ao/hoist-backlog-5/agent/issue-67-cli-bedrock-sso
branch
December 1, 2026 23:44
This was referenced Dec 2, 2026
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.
The CLI Bedrock probe now uses the selected AWS IAM Identity Center profile when explicit, environment and static shared-file credentials are unavailable. It signs with temporary role credentials and gives a sign-in hint when the SSO exchange fails.
Closes #67. Part of #15.
Verification
mise run ci:clipassed. Typecheck, 61 tests, 0 failures, 329 assertions and a Linux x64 binary build.mise exec -- bun build cli/src/index.ts --compile --target=bun-darwin-arm64 --outfile=<fixture>/hoistpassed. The native fixture run withHOIST_TEST_CLI_BINARY=<fixture>/hoistpassed all five tests.git diff --cached --checkpassed before commit.Behaviour proof
The positive fixture checks that the SSO endpoint receives the portal token and the Bedrock endpoint receives the temporary session token and the profile's Bedrock region in the SigV4 credential scope.
Built macOS CLI transcript for a configured AWS profile with no cached login, with spinner control codes removed:
A second native run reached the local SSO fixture, received a 401 and printed the same sign-in hint. Both native runs verified that the Bedrock endpoint received zero requests.
Reviewer notes
The SDK's SSO provider handles direct profiles with an
sso_sessionor legacy inline SSO settings. The tests use isolated AWS files, fake tokens and local HTTP endpoints. App parity, role chaining and live provider acceptance remain on #15.