Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for STS Session Tags #480

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fatmcgav
Copy link

@fatmcgav fatmcgav commented Apr 19, 2024

Description

This commit adds support to the iam-assumable-role-with-oidc module
for enabling and configuring STS Session tags on the role trust policy.

Docs: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html

Motivation and Context

STS session tags allow for additional control when using the AssumeRoleWithWebIdentity authentication call.

Breaking Changes

None

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@bryantbiggs
Copy link
Member

this looks like you are looking for the https://github.com/terraform-aws-modules/terraform-aws-iam/tree/master/modules/iam-role-for-service-accounts-eks instead - using that sub-module, is this change still warranted? I'm thinking no

@fatmcgav
Copy link
Author

Hey @bryantbiggs ...

So I think this change is still valid, as I'm using session tags in combination with an external OIDC provider, in this case env0. Docs are here: https://docs.env0.com/docs/oidc-with-aws#custom-claims-with-aws-session-tags-optional

Copy link

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label May 23, 2024
@fatmcgav
Copy link
Author

@bryantbiggs / @antonbabenko Any chance of a review on this one? 👍

This commit adds support to the `iam-assumable-role-with-oidc` module
for enabling and configuring STS Session tags on the role trust policy.

Docs: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants