The postgresql-operator charm utilizes a Prometheus postgres exporter to gather database metrics via a specific monitoring user. When database connection errors occur, the exporter records the password of this monitoring user in cleartext within the logs. An attacker with access to these logs can retrieve the password, obtaining read-only pg monitor access to the PostgreSQL database.