Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgECa-00021v-8K for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Oct 2014 14:44:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XgECZ-0001TG-FP for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Oct 2014 14:44:51 +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 1XgECY-0001T9-HG for pgsql-bugs@postgresql.org; Mon, 20 Oct 2014 14:44:50 +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 1XgECV-00087p-5E for pgsql-bugs@postgresql.org; Mon, 20 Oct 2014 14:44:49 +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 s9KEibt2004301; Mon, 20 Oct 2014 10:44:37 -0400 From: Tom Lane To: Steven Siebert cc: Bruce Momjian , Magnus Hagander , Stephen Frost , pgsql-bugs Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication In-reply-to: References: <20140619135428.GM16098@tamriel.snowman.net> <31008.1403189850@sss.pgh.pa.us> <20140619153712.GV16098@tamriel.snowman.net> <20140619160901.GW16098@tamriel.snowman.net> <20141011183535.GA21267@momjian.us> <25516.1413142930@sss.pgh.pa.us> <28196.1413749669@sss.pgh.pa.us> Comments: In-reply-to Steven Siebert message dated "Mon, 20 Oct 2014 10:11:24 -0400" Date: Mon, 20 Oct 2014 10:44:37 -0400 Message-ID: <4300.1413816277@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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: > 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