PostgreSQL can read a default database password from an environment variable called PGPASSWORD. Rationale: Using the PGPASSWORD environment variable implies PostgreSQL credentials are stored as clear text. Avoiding use of this environment variable can better safeguard the confidentiality of PostgreSQL credentials.
Solution
Check which users and/or scripts are setting PGPASSWORD and change them to use a more secure method.