Files
floci/src/main/java/io/github
Simon B. LaursenandSimon B. Laursen 9056f80028 fix(iam): honour 12-digit access key in IAM resource ARNs (#1017)
IamService constructed its accountId once at startup from
config.defaultAccountId() (always '000000000000'), so every CreateRole,
CreateUser, CreateGroup, CreatePolicy and CreateInstanceProfile call
returned an ARN with the wrong account — identical to the STS bug fixed
in #983.

Inject RegionResolver and call regionResolver.getAccountId() per request
inside iamArn(), so the ARN reflects the caller's account when a 12-digit
AKID is used.

Add integration tests iamCreateRoleHonoursTwelveDigitAccessKey and
iamGetRoleHonoursTwelveDigitAccessKey to cover the fix.

Co-authored-by: Simon B. Laursen <sls@bankdata.dk>
2026-05-24 16:13:15 -05:00
..