Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq5RW-0004mI-Tg for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2015 19:57:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yq5RW-0008Nx-BA for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2015 19:57:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yq5RV-0008Nq-50 for pgsql-hackers@postgresql.org; Wed, 06 May 2015 19:57:17 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yq5RN-0001Qa-UJ for pgsql-hackers@postgresql.org; Wed, 06 May 2015 19:57:15 +0000 Received: from mfilter8-d.gandi.net (mfilter8-d.gandi.net [217.70.178.137]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 7520AFB883; Wed, 6 May 2015 21:57:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter8-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter8-d.gandi.net (mfilter8-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id QJlbFegZETqW; Wed, 6 May 2015 21:57:05 +0200 (CEST) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-98-27-58-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 4C831FB886; Wed, 6 May 2015 21:57:04 +0200 (CEST) Message-ID: <554A720F.1030706@dunslane.net> Date: Wed, 06 May 2015 15:57:03 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Alvaro Herrera , Robert Haas CC: =?windows-1252?Q?Volker_A=DFmann?= , "pgsql-hackers@postgresql.org" Subject: Re: Disabling trust/ident authentication configure option References: <20150506144724.GU2523@alvh.no-ip.org> In-Reply-To: <20150506144724.GU2523@alvh.no-ip.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 05/06/2015 10:47 AM, Alvaro Herrera wrote: > > I don't necessarily agree with the patch as proposed. I would rather > have a comma-separated list of methods, as in: > > --disable-auth=ident,peer > > which lets you choose what to disable without hardcoded choices. Due to > the nature of autoconf, this might be too fiddly to implement, though, > and if so I think the method proposed by this patch seems a reasonable > compromise. I've seen configure in other programs offer options such as > --disable-foo=list that lists acceptable values (or --disable-foo=help) > I don't necessarily object to this idea, but I do think we need to ensure that we don't allow both trust and peer to be disabled (which means on Windows you would not be able to disable trust). Otherwise this becomes a footgun which would require the whole server to be stopped so you could connect in single user mode to correct certain mistakes, which are unfortunately all too common. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers