Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XdPT1-0001hQ-SU for pgsql-bugs@arkaria.postgresql.org; Sun, 12 Oct 2014 20:10:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XdPT1-0000MF-CR for pgsql-bugs@arkaria.postgresql.org; Sun, 12 Oct 2014 20:10:11 +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 1XdPT0-0000LO-Dk for pgsql-bugs@postgresql.org; Sun, 12 Oct 2014 20:10:10 +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 1XdPSw-0005ik-DO for pgsql-bugs@postgresql.org; Sun, 12 Oct 2014 20:10:09 +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 s9CK9usP026136; Sun, 12 Oct 2014 16:09:56 -0400 From: Tom Lane To: Stephen Frost cc: Steven Siebert , Bruce Momjian , Magnus Hagander , pgsql-bugs Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication In-reply-to: <20141012195800.GY28859@tamriel.snowman.net> References: <20140619153712.GV16098@tamriel.snowman.net> <20140619160901.GW16098@tamriel.snowman.net> <20141011183535.GA21267@momjian.us> <25516.1413142930@sss.pgh.pa.us> <20141012195800.GY28859@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Sun, 12 Oct 2014 15:58:01 -0400" Date: Sun, 12 Oct 2014 16:09:56 -0400 Message-ID: <26135.1413144596@sss.pgh.pa.us> 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 Stephen Frost writes: > Let's stop having passwords and secrets in a complex configuration file > which can have parsing and other failures. > How about allowing users to put that information in an independent file, > as do for SSL (admittedly, probably more because it's easier for us to > deal with OpenSSL that way, but still)? And then what? This other file can't possibly be so simple that it's immune to having syntax errors, for example. You're just moving the same problems from point A to point B. More, this would complicate configuration and thereby create a whole new set of possible config errors, which we'd then feel pressure to ameliorate by adding more logging showing what the postmaster is doing. And that logging would have this same issue of maybe it's exposing information that person A doesn't want logged ... even though person B needs that very same info to help him figure out his configuration mistake. A likely example of that is feeding the wrong password/secret to some auth infrastructure service, because you referenced the wrong item in this secondary file. The core problem here is that we *need* to put security-relevant info into the postmaster log in order to help people resolve problems. Moving around configuration details isn't going to fix that; indeed, the more complicated the configuration files, the worse the problem will be. 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