Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxdmU-00026r-IJ for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 14:57:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxdmU-00025a-1t for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 14:57:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxdmT-00025T-3m for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 14:57:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxdmQ-0008NA-Bh for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 14:57:36 +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 s5JEvU9Y031009; Thu, 19 Jun 2014 10:57:30 -0400 From: Tom Lane To: Steven Siebert cc: Stephen Frost , pgsql-bugs Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication In-reply-to: References: <20140617175511.2589.45249@wrigleys.postgresql.org> <20140619124432.GP16098@tamriel.snowman.net> <20140619135428.GM16098@tamriel.snowman.net> Comments: In-reply-to Steven Siebert message dated "Thu, 19 Jun 2014 10:37:22 -0400" Date: Thu, 19 Jun 2014 10:57:30 -0400 Message-ID: <31008.1403189850@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Steven Siebert writes: > Agreed. In our situation (government), though, we must export out > logs to enterprise logging services where auditors (that wouldn't > otherwise have access to the server/process) would be able to see it. The thing is that the postmaster logs will certainly contain all manner of sensitive information. A few examples: * Occasionally, people mess up and enter their username as their password and vice versa. Logging of connection failures, or indeed mere logging of error messages, will therefore expose their password --- admittedly, not identified as such, but if you see a subsequent successful connection you know whose it was. * Logging of queries is likely to expose sensitive user data in the form of constants in the queries, eg "INSERT INTO customers (name, address, credit_card_number) VALUES (...)". Even if you're not logging all queries, failed queries could still expose such data. * An example pretty directly connected to yours is that people have complained about how statement logging will capture "ALTER USER joe WITH PASSWORD 'joes-new-password'". So basically, making the logs safe to show to untrusted auditors is a fool's errand. You need to deal with this problem in some other, nontechnical, way. IOW, why exactly don't you trust the auditors, and how will you fix that? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs