Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxeOr-0003ck-Hh for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 15:37:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxeOr-0003cX-2G for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 15:37:17 +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 1WxeOq-0003cR-CF for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 15:37:16 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxeOn-0000ox-4Q for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 15:37:15 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 380CF5F7DB; Thu, 19 Jun 2014 11:37:12 -0400 (EDT) Date: Thu, 19 Jun 2014 11:37:12 -0400 From: Stephen Frost To: Steven Siebert Cc: Tom Lane , pgsql-bugs Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication Message-ID: <20140619153712.GV16098@tamriel.snowman.net> References: <20140617175511.2589.45249@wrigleys.postgresql.org> <20140619124432.GP16098@tamriel.snowman.net> <20140619135428.GM16098@tamriel.snowman.net> <31008.1403189850@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WqTjpp3GQTmREKEt" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.11.0-19-generic (x86_64) X-Uptime: 11:36:24 up 72 days, 1:55, 13 users, load average: 0.05, 0.10, 0.07 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --WqTjpp3GQTmREKEt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Steven Siebert (smsiebe@gmail.com) wrote: > There are currently three suggestions on a fix put forth already: > 1) remove the raw line from the log entirely, just keeping the line numb= er > 2) log that one specific event containing the raw log at a lower log > level (ie debug) > 3) parse out the password and continue to log the sanitized line at > the same "level" (all) >=20 > I'm OK with the fact that the patch I provided using the first > approach seems to be denied. Can we consider either approach 2, 3, or > perhaps a combination or 2/3? I actually don't really see a huge problem with 1, but I need to go review the thread in more detail... > I do have alternative means at my disposal (ie use flume, or something > similar, to filter out just the log events I'm interested in and > forward off)...but we wanted to be able to help those behind us that > had similar concerns by fixing it at the source of the 'problem'. I > want postgres to be unequivocally be approved software for the > government - not conditionally based on complex usages of 3rd party > applications to get it into an approved state. Yeah, I tend to agree- mistakes and errors are different considerations when it comes to auditing, etc. Thanks, Stephen --WqTjpp3GQTmREKEt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTowOnAAoJEO1sijiDR2RVe7AQAK4KsgPYQjeuf3wBCi4mgOew Wv74nKhK3GKBBivNpGMlE3B+IOGANxu2urkz6Q9azTbvTlsoG9DV8ejZSobC9upN Aln9JULFKg8uGAnRUgKbm7fitbKFSj383m3zYqDcAcrWxjNcggNxD+0rRB5QqhR9 r1cG+fNLu7QRULs1GTkJSzV6q2zOF2dVcf0VFWvK74Q2wbUKm/vehrkRgKbvrwVa j6DWtXFYS5++vSln4D3JgHEIXq4w4QPuJoX/kNkIJ2Wi9NRfZvHy9g3K+sg+rvIP FIAYfxFtmDEwTzn+5JVTCavEOvfRPTTHbZWNosP6uHoOBXv2hFUbKGeGJ5yAlPml 5chFgtsbZU1hfVvxAs5xBrfQo6qSasvaYNc2f7hOZySA2wdjMYcpXLG1+3MMn0sm xgqzDcTgbTWk2/jp4LAnkpYbRSdBu18W8vzyhm++qDVLZ3dwyuAJOlqBdIjjIcLS 807IHQBRCJrVyYgkEUovHOho5QPpkXxHm41eXIAPvqok55FbGG1wGdkqYrSdTeSI WFeRYCOo25i4qhgLPN1TmqELYy9OLXhVKgSCCmd2t6Vp99+rlU6Y3teubgsKQPTt wj0ySRQ2/EIAuB4zlCHiFASz3ywkrXbrNPaWU56ztoKqOA0tdmmJ0UeejgSFn24W cZ/IAd1A8R5ZFHN+qXvY =ujk3 -----END PGP SIGNATURE----- --WqTjpp3GQTmREKEt--