Repository navigation
Conversation
A hardened agent now asks STS who fetched credentials belong to, once per credential set, and decides again with the real caller (gate 2) before every vend, including from the cache. Role names on custom servers can be opaque, so only the credentials say which account they open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
This branch has not been deployed
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.
Implements docs/specs/009-caller-identity.md.
sts:GetCallerIdentitywith an explicitly configured client (us-east-1,https://sts.amazonaws.com, system roots, 15 s timeout, noAWS_*or config files) and evaluates theUseCredentialsaction withcontext.callerbuiltin-use-credentialsandbuiltin-caller-account-mismatch(declared account != real account refuses)AuthorizationErrorgainsgateandcaller_arn; gate-2 refusals printrefused at use-credentials: …with the identitybuild.rsreruns on proto changesVerified in Docker (26 checks) with a fake credential server and fake STS behind a test CA: STS ignores client-side
AWS_ENDPOINT_URL_STS/AWS_REGION/AWS_PROFILE, cache hits skip STS, account mismatch refused, STS errors fail closed, unhardened agents never call STS. Gate-2 prompts need user policy (011) and are unit-tested only.🤖 Generated with Claude Code
https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM