idtoken var source: support AWS session tags for ABAC #9753
zoezhangmattr
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
AWS only lets IAM match on the
subandaudclaims of anidtokenJWT. With instanced pipelines this means one IAM role (and trust policy) per instance, because the only way to tellenv:devfromenv:prodis an exactsubmatch. Theteam,pipeline,jobandinstance_varsclaims are in the token but AWS can't use them.Proposal
Add an opt-in
aws_session_tagsoption to theidtokenvar source. When enabled, the token includes the claim AWS reads session tags from inAssumeRoleWithWebIdentity(AWS docs):All reactions