-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
MFA enforcement should remain as opt-in feature in IAM groups, as such enable_mfa_enforcement
should default to false
.
#509
Comments
This issue has been automatically marked as stale because it has been open 30 days |
/keepalive |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
#313 introduces undocumented change to force MFA for all console and API user. A similar issue #332 was created, and a supposed fix #333 was released in version 5.14.3, introduces new
enable_mfa_enforcement
variable which defaults totrue
, which causes IAM groups withattach_iam_self_management_policy
set totrue
still inadvertently opts in to MFA enforcement due to this line:terraform-aws-iam/modules/iam-group-with-policies/policies.tf
Line 157 in 89fe17a
In my opinion, MFA enforcement should be an opt in feature. Users migrating from older version (example version 5.3.1) to current version may find that IAM groups users with
attach_iam_self_management_policy
set totrue
suddenly lose access to their consoles, which can cause more harm than good.If the maintainers agree, I am willing to submit a PR along with clear documentation to ensure that the implications of enabling MFA enforcement are made clear.
Versions
Module version [Required]: 5.43.0
Terraform version: 1.3+
Reproduction Code [Required]
Steps to reproduce the behavior:
iam-group-with-policies
, withattach_iam_self_management_policy
set totrue
, without specifyingenable_mfa_enforcement
(left as default)Result:
Expected behavior
enable_mfa_enforcement
should be default tofalse
Actual behavior
enable_mfa_enforcement
is currrently defaults totrue
, as shown in this lineterraform-aws-iam/modules/iam-group-with-policies/variables.tf
Line 40 in 89fe17a
The text was updated successfully, but these errors were encountered: