terraform-aws-modules / terraform-aws-iam

Terraform module to create AWS IAM resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/iam/aws
Apache License 2.0
787 stars 996 forks source link

feat: Add role_requires_session_name #491

Closed sebastianvoss closed 3 weeks ago

sebastianvoss commented 4 months ago

Description

Enforce users to set the role-session-name to their user name when assuming a role. See https://aws.amazon.com/blogs/security/easily-control-naming-individual-iam-role-sessions/ for details.

Motivation and Context

This allows to identify user activities in AWS audit logs (e.g. EKS audit logs) based on a reliable identifier. If the user can set role-session-name to an arbitrary value this would not be possible.

Breaking Changes

Nothing.

How Has This Been Tested?

I tested this using my fork in our AWS account.

github-actions[bot] commented 3 months ago

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

sebastianvoss commented 3 months ago

Is there anything missing? Please just let me know.

github-actions[bot] commented 2 months ago

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

sebastianvoss commented 2 months ago

still relevant

github-actions[bot] commented 1 month ago

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[bot] commented 3 weeks ago

This PR was automatically closed because of stale in 10 days