Description
Set require_numbers = true if RAM console passwords must contain a digit.
Potential impact
With false, RAM accepts passwords without digits. Adding a digit to a common word still leaves a predictable password.
Remediation
Change the digit requirement in the existing account policy and keep your minimum length and other character requirements.
Examples
Before
hcl
resource "alicloud_ram_account_password_policy" "corporate" {
minimum_password_length = 9
require_lowercase_characters = false
require_uppercase_characters = false
require_numbers = false
require_symbols = false
hard_expiry = true
max_password_age = 12
password_reuse_prevention = 5
max_login_attempts = 3
}
After
hcl
resource "alicloud_ram_account_password_policy" "corporate" {
minimum_password_length = 9
require_lowercase_characters = false
require_uppercase_characters = false
require_numbers = true
require_symbols = false
hard_expiry = true
max_password_age = 12
password_reuse_prevention = 5
max_login_attempts = 3
}