Files
floci/src
Priamo Germosen fb658f01ee fix(iam): read the role's tags in federated and service trust policies (#9486)
A role's trust policy read for AssumeRoleWithWebIdentity or
AssumeRoleWithSAML, or when a service assumes the role, never saw the
role's own tags: a condition on aws:ResourceTag/<key> or
iam:ResourceTag/<key> matched nothing, so a trust policy allowing an
assume only onto roles carrying a tag refused every one, and one denying
it onto such roles never applied. AssumeRole has read them since the
role's stored tags were given to its trust policy; these paths run their
own condition reading and were left out.

Each of those assumes acts on the role, which the Service Authorization
Reference gives aws:ResourceTag/${TagKey} and iam:ResourceTag/${TagKey},
and the global condition keys page has aws:ResourceTag in the request
context "when the requested resource already has attached tags". The
web identity and SAML evaluators now read the role's tags, under the keys
the generated resourceTagKeys table gives the role type, beside the
token's claims or the assertion's attributes, a tag key matched whatever
its case. A service's assume reads them through a new
AssumeRolePolicyEvaluator.allowsService taking the role, which the
service-role authorizer, the AppSync data source authorizer, Step
Functions' Lambda and API Gateway tasks and the Lambda web adapter's
execution role now use, beside the service's principal and source keys.
2026-11-25 22:26:18 -04:00
..