Information
If not using certificate-based authentication, all database accounts that have the ability to login should have a password set.
All accounts that can login to the database should challenge the user for an SSL certificate or an account password.
Solution
Set a valid password for any database user identified above.
postgres=# \\password user1
This shows setting the password for user1 . You can use ALTER ROLE, but note that the passwords will be emitted to the PostgreSQL logs.
Impact:
Note that if no password has been set up for a user, the stored password is null and password authentication will always fail for that user.