Description
password_reuse_prevention sets how many recent RAM passwords a user cannot reuse. A value of 0 disables this check.
Potential impact
Reusing a previously exposed password makes that credential valid again.
Remediation
Choose a history of 1 to 24 passwords. The example blocks the last five. Also avoid passwords you use on other services.
Examples
Before
hcl
resource "alicloud_ram_account_password_policy" "corporate" {
max_password_age = 12
max_login_attempts = 3
}
After
hcl
resource "alicloud_ram_account_password_policy" "corporate" {
max_password_age = 12
password_reuse_prevention = 5
max_login_attempts = 3
}