public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Laurenz Albe <[email protected]>
Cc: sreekanta reddy <[email protected]>
Cc: [email protected]
Subject: Re: Permissions for Newly Created User
Date: Fri, 18 Oct 2024 12:44:26 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <CAK5dmvD-63hFPBZ+GnuZEO9Knabpw1wnrWnrHuADjWPFF-Pgvw@mail.gmail.com>
<[email protected]>
Laurenz Albe <[email protected]> writes:
> On Fri, 2024-10-18 at 15:41 +0530, sreekanta reddy wrote:
>> When creating or altering a user's password, the log file captures the password in plain text format, which could be a potential security risk.
>> However, when using the \password command in psql, the password is logged in its hashed format (SHA-256), which is a more secure practice.
>> I recommend extending this hashed logging format to all password creation and modification operations.
> You mean to hash it just for logging?
> After you sent it to the server in clear text, so that the DBA could capture it with an
> event trigger? Where is the point? The log file is to be treated as sensitive data.
Yeah. To enlarge on that: if you are capturing SQL commands in the
log file, they most likely contain all kinds of sensitive data ---
think credit card numbers, bank account numbers, HIPAA-protected
medical details, yadda yadda. Most of that, the database has no idea
whether it's sensitive, so "please hide sensitive data in the log" is a
non-starter. You have to guard the postmaster log about as carefully
as you guard the database contents.
regards, tom lane
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Permissions for Newly Created User
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox