pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Steven Siebert <smsiebe@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
Date: Thu, 19 Jun 2014 11:37:12 -0400
Message-ID: <20140619153712.GV16098@tamriel.snowman.net> (raw)
In-Reply-To: <CAC3nzehHdOtSMY+LPDNWjDgKaCb4EQKdB-axQsafrbNw5+pWkw@mail.gmail.com>
References: <20140617175511.2589.45249@wrigleys.postgresql.org>
	<20140619124432.GP16098@tamriel.snowman.net>
	<CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com>
	<20140619135428.GM16098@tamriel.snowman.net>
	<CAC3nzehiW+L_tX6nvwcegaxh1zQZ2o-19+rOaci2AocbyMkfAA@mail.gmail.com>
	<31008.1403189850@sss.pgh.pa.us>
	<CAC3nzehHdOtSMY+LPDNWjDgKaCb4EQKdB-axQsafrbNw5+pWkw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

* 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 number
>  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)
> 
> 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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (32+ messages)  latest in thread

Message-ID: <20140619153712.GV16098@tamriel.snowman.net>
Permalink:  ../20140619153712.GV16098@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20140619153712.GV16098@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sfrost@snowman.net, smsiebe@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
  In-Reply-To: <20140619153712.GV16098@tamriel.snowman.net>
  References: <20140617175511.2589.45249@wrigleys.postgresql.org> <20140619124432.GP16098@tamriel.snowman.net> <CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com> <20140619135428.GM16098@tamriel.snowman.net> <CAC3nzehiW+L_tX6nvwcegaxh1zQZ2o-19+rOaci2AocbyMkfAA@mail.gmail.com> <31008.1403189850@sss.pgh.pa.us> <CAC3nzehHdOtSMY+LPDNWjDgKaCb4EQKdB-axQsafrbNw5+pWkw@mail.gmail.com> <20140619153712.GV16098@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox