Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2IJJ-0007QT-CV for pgsql-admin@arkaria.postgresql.org; Wed, 11 Oct 2017 14:48:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2IJI-0008Aj-Tg for pgsql-admin@arkaria.postgresql.org; Wed, 11 Oct 2017 14:48:36 +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 1e2IJI-0008AR-FF for pgsql-admin@postgresql.org; Wed, 11 Oct 2017 14:48:36 +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 1e2IJF-0008Lh-VP for pgsql-admin@postgresql.org; Wed, 11 Oct 2017 14:48:35 +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 v9BEmX7q009073; Wed, 11 Oct 2017 10:48:33 -0400 From: Tom Lane To: Don Seiler cc: pgsql-admin Subject: Re: Passwords in clear text in server log In-reply-to: References: Comments: In-reply-to Don Seiler message dated "Wed, 11 Oct 2017 09:30:50 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9071.1507733313.1@sss.pgh.pa.us> Date: Wed, 11 Oct 2017 10:48:33 -0400 Message-ID: <9072.1507733313@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: > When I run a CREATE USER or ALTER USER statement and set a password for a > user, that statement gets printed to the server log, along with the > password, IN CLEAR TEXT. This is why psql has provisions for encrypting a new password on the client side --- see \password. More generally, almost any SQL command might contain data that somebody thinks is sensitive for some purpose or other. If you're going to log commands, it behooves you to make sure the log is not widely readable. 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