pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steven Siebert <smsiebe@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
Date: Mon, 20 Oct 2014 10:44:37 -0400
Message-ID: <4300.1413816277@sss.pgh.pa.us> (raw)
In-Reply-To: <CAC3nzegFpW5oXL7cy+2BvZYTS4ehzwHBme-T2sT8raJdgMYmBQ@mail.gmail.com>
References: <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>
	<CABUevEzTfNTMF3F1hTyK1Lhq+2dt4fdCSyCrRF=BVgckf6y8ng@mail.gmail.com>
	<20140619160901.GW16098@tamriel.snowman.net>
	<CAC3nzegc2hSqcLcGdgGLXsMYapOAPBFmr76VkzqK=vBpefmRdg@mail.gmail.com>
	<CABUevEziycN8irGudCg+DW0MY-afwbEjDR0ODGO9Rz9Sm9wSRQ@mail.gmail.com>
	<CAC3nzeitnG+3DthhAer3TF0OQO0-JsFWVB9iuXMqMCRz7aDmpw@mail.gmail.com>
	<20141011183535.GA21267@momjian.us>
	<CAC3nzeidOUjEsF-dUYo_eDEMQqYMe0zWnc8RtirX8=vPoxAR5w@mail.gmail.com>
	<CAC3nzeivnRFD+41PRhAx8Kd9VwbW0B2bzzJEmf603RTO6xAJvg@mail.gmail.com>
	<25516.1413142930@sss.pgh.pa.us>
	<CAC3nzegPFYTMZ32p5_y5NGk9FWQtTafm0KGeCwBXeD3-74r3nw@mail.gmail.com>
	<CAC3nzejRpn0=icgSRqiB7DdCDSXO_4VvAYCJknBC1j=dtOpZbA@mail.gmail.com>
	<28196.1413749669@sss.pgh.pa.us>
	<CAC3nzegFpW5oXL7! cy+2BvZYTS4ehzwHBme-T2sT8raJdgMYmBQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Steven Siebert <smsiebe@gmail.com> writes:
> Moving the secrets to another file will indeed fix this problem, and I
> really don't think it'll take very much to implement this.  As you
> mentioned, this increases the complexity of the configuration process,
> and I certainly don't want to impose our backwards incompatible change
> (on upgrade, they would need to create those new files) on everyone
> else in the community.

I'm not following what's backwards incompatible about it?  As I see it,
this would require some new syntax ("@filename" perhaps?) that you
could optionally use in place of a secret.  If you had in mind to *force*
people to use out-of-line secret storage, I agree that ain't happening.

> My counter proposal is to optionally allow dbas to encrypt the secrets
> used in the configuration file by substituting the actual password
> with a variable.

This sounds like more complication with no real benefit.  Also, we've
generally avoided putting any strong encryption capability into core
Postgres because of worries about US export regulations.  Perhaps that
worry is obsolete, but I'm not sure.

			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



view thread (32+ messages)  latest in thread

Message-ID: <4300.1413816277@sss.pgh.pa.us>
Permalink:  ../4300.1413816277@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4300.1413816277@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, smsiebe@gmail.com, bruce@momjian.us, magnus@hagander.net, sfrost@snowman.net
  Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
  In-Reply-To: <4300.1413816277@sss.pgh.pa.us>
  References: <20140619135428.GM16098@tamriel.snowman.net> <31008.1403189850@sss.pgh.pa.us> <CAC3nzehHdOtSMY+LPDNWjDgKaCb4EQKdB-axQsafrbNw5+pWkw@mail.gmail.com> <20140619153712.GV16098@tamriel.snowman.net> <CABUevEzTfNTMF3F1hTyK1Lhq+2dt4fdCSyCrRF=BVgckf6y8ng@mail.gmail.com> <20140619160901.GW16098@tamriel.snowman.net> <CAC3nzegc2hSqcLcGdgGLXsMYapOAPBFmr76VkzqK=vBpefmRdg@mail.gmail.com> <CABUevEziycN8irGudCg+DW0MY-afwbEjDR0ODGO9Rz9Sm9wSRQ@mail.gmail.com> <CAC3nzeitnG+3DthhAer3TF0OQO0-JsFWVB9iuXMqMCRz7aDmpw@mail.gmail.com> <20141011183535.GA21267@momjian.us> <CAC3nzeidOUjEsF-dUYo_eDEMQqYMe0zWnc8RtirX8=vPoxAR5w@mail.gmail.com> <CAC3nzeivnRFD+41PRhAx8Kd9VwbW0B2bzzJEmf603RTO6xAJvg@mail.gmail.com> <25516.1413142930@sss.pgh.pa.us> <CAC3nzegPFYTMZ32p5_y5NGk9FWQtTafm0KGeCwBXeD3-74r3nw@mail.gmail.com> <CAC3nzejRpn0=icgSRqiB7DdCDSXO_4VvAYCJknBC1j=dtOpZbA@mail.gmail.com> <28196.1413749669@sss.pgh.pa.us> <4300.1413816277@sss.pgh.pa.us>

* 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