Files
floci/src/main/java/io/github/hectorvent
Stuart Lang 788ddf751f fix(sts): honour 12-digit access key as account ID in STS responses (#983)
* fix(sts): honour 12-digit access key as account ID

GetCallerIdentity, AssumeRole, AssumeRoleWithWebIdentity,
AssumeRoleWithSAML, and GetFederationToken now resolve the account ID
from the request-scoped RegionResolver instead of the static IAM
default, so ARNs match the per-account namespace used by SNS, SQS, S3,
etc. Closes #981.

* fix(sts): derive AssumedRoleUser account from RoleArn

AssumeRole, AssumeRoleWithWebIdentity, and AssumeRoleWithSAML now build
AssumedRoleUser.Arn using the account ID parsed from the supplied
RoleArn, falling back to the caller's account only when the ARN is
missing or unparseable. This matches AWS cross-account assume-role
behaviour: the resulting ARN belongs to the target role's account, not
the caller's.
2026-05-21 20:36:28 -05:00
..