mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
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>