Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 890CF63305B for ; Tue, 24 Aug 2010 16:40:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 80997-09 for ; Tue, 24 Aug 2010 19:40:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B5253632FFD for ; Tue, 24 Aug 2010 16:40:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o7OJeZnr003754; Tue, 24 Aug 2010 15:40:35 -0400 (EDT) To: Scott Marlowe cc: Keith Pinnix , pgsql-admin@postgresql.org Subject: Re: postgresql 8.3 logging user passwords in clear text In-reply-to: References: <624891.14568.qm@web36907.mail.mud.yahoo.com> <521611.74185.qm@web36904.mail.mud.yahoo.com> Comments: In-reply-to Scott Marlowe message dated "Tue, 24 Aug 2010 13:01:51 -0600" Date: Tue, 24 Aug 2010 15:40:35 -0400 Message-ID: <3753.1282678835@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/192 X-Sequence-Number: 35441 Scott Marlowe writes: > On Tue, Aug 24, 2010 at 12:20 PM, Keith Pinnix wrote: >> The entries are from dblimk something like below: >>  SELECT * FROM dblink('dbname=XXXXXX  host=XXXXXX port=XXX  user=XXXXX >> password=XXXXXXX ', > You could set up those machines to connect via trust. But yeah, > dblink otherwise has passwords in the connect string. Actually, the general opinion on this is that the postmaster log files have to be protected because they might contain sensitive data; *especially* so if you're enabling log_statements, but even without that. dblink passwords are just one small manifestation of the general problem. As an example, you might be inserting customers' credit card numbers or some such into your tables. Even if the log_statement mechanism understood that it should hide passwords, it's hardly likely to know that specific bits of ordinary data have security implications. IOW: you're trying to fix this in the wrong place. Secure your logfiles, don't imagine that you can prevent there being any sensitive info in them. regards, tom lane