Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2J6g-0002WG-9e for pgsql-admin@arkaria.postgresql.org; Wed, 11 Oct 2017 15:39:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2J6f-0004wL-Sk for pgsql-admin@arkaria.postgresql.org; Wed, 11 Oct 2017 15:39:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2J4p-00081g-Ft for pgsql-admin@postgresql.org; Wed, 11 Oct 2017 15:37:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2J4i-0000x8-Vn for pgsql-admin@postgresql.org; Wed, 11 Oct 2017 15:37:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9BFbax4013880; Wed, 11 Oct 2017 11:37:36 -0400 From: Tom Lane To: Don Seiler cc: pgsql-admin Subject: Re: Passwords in clear text in server log In-reply-to: References: <9072.1507733313@sss.pgh.pa.us> Comments: In-reply-to Don Seiler message dated "Wed, 11 Oct 2017 10:22:31 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13878.1507736256.1@sss.pgh.pa.us> Date: Wed, 11 Oct 2017 11:37:36 -0400 Message-ID: <13879.1507736256@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Don Seiler writes: > On Wed, Oct 11, 2017 at 9:48 AM, Tom Lane wrote: >> This is why psql has provisions for encrypting a new password on the >> client side --- see \password. > That's nice to have that option, but why even make it an option? If this > is a dead horse that was finished being beaten years ago, my apologies. Yes, people have complained about this before, but they're asking for an impossibility, which is for necessarily-pretty-dumb logging code to decide which parts of SQL commands somebody might think are sensitive. I don't intend to spend much time arguing about this, because you can find previous discussions in the PG archives if you're so inclined. But I do remember one simple counterexample: if you fat-finger the command syntax, say ALTER YSER joe PASSWORD 'notsosecret' would you still expect the logging code to figure out that it should suppress the password? regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin