From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | "hans(dot)wolters" <hans(dot)wolters(at)protonmail(dot)com> |
Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: password saved in .psql_history |
Date: | 2020-08-25 21:39:46 |
Message-ID: | 20200825213946.GA22117@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 2020-Aug-25, hans.wolters wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Dear all,
> I noticed the password of a used is stored in the history of the psql user (postgres in my case). This happens when alter user <user> with password '<password>' is used.
> I suppose it is not a real bug but it might be handy to filter that for things like a history listing.
This is why you should use \password in psql instead of 'alter user ..
password'. (Well, that and the server log and risk of unencrypted
password traffic.)
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2020-08-25 22:55:52 | BUG #16593: pg_upgrade make corrupt UK indexes |
Previous Message | hans.wolters | 2020-08-25 20:29:54 | password saved in .psql_history |