Help Center/ Relational Database Service/ Troubleshooting/ RDS for PostgreSQL/ "password is easily cracked" Displayed When an RDS for PostgreSQL User Is Created
Updated on 2024-12-31 GMT+08:00

"password is easily cracked" Displayed When an RDS for PostgreSQL User Is Created

Scenario

The error message "password is easily cracked" is displayed when a database user is created for an RDS for PostgreSQL instance.

Figure 1 Error message

Possible Causes

This is because a weak password is intercepted. In RDS for PostgreSQL 11.22, 12.22, 13.18, 14.15, 15.10, 16.6, and later versions, weak password detection is enabled by default. If a weak password is used to create a user, an error will be reported.

Solutions

  • Use a complex password to prevent brute-force attacks.
  • To disable weak password interception, set passwordcheck.rds_enable_cracklib to off to avoid weak password verification. For details, see Modifying Parameters of an RDS for PostgreSQL Instance. Then the password is checked only according to the basic rules.

    The basic rules are as follows:

    • The password must contain at least eight characters.
    • The password must consist of letters and other characters.
    • The password cannot contain the username.