Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drmLy-0001YX-OJ for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2017 14:39:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1drmLy-0005zR-2q for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2017 14:39:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1drmKP-0002X7-5i for pgsql-hackers@postgresql.org; Tue, 12 Sep 2017 14:38:17 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1drmKM-00033D-8x for pgsql-hackers@postgresql.org; Tue, 12 Sep 2017 14:38:15 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 2898A202DD; Tue, 12 Sep 2017 10:38:13 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 12 Sep 2017 10:38:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=six4CM46kZM3w4KbooGAWLkMNRe9YSAx4qngs/NK19c=; b=ZtqFHtNl j387C1JJYaN50vypeJnGRuIZ0HpzwB4MUINOaNfxjStkD7xx6x4n9DL6CaaJlRYE zxo+yaOM2ZmNSV04BjyxqI5a5d5YpRUAVaHu68MYMJsDmHl4Fgbn3vaOfSqLWgNp 8WRRt9GyC6cUiazd4/H0dz9LUzOuABDQws1nbjH6LySaU9m/fxz6SZ3qNUcsisAO wWZj/9H1um7rKFOHI+/c+vrbY8OfrXATgtvQELLOp3V1GPnXTBS3IsjHQjnXJ9nO MJmsunzEvEdWADS7Pu+8p0XeB55La4JArzl0VL3dbh5EtXIl7ijeCV/jUPhTN/SO tVmWzCd7XQwX8Q== X-ME-Sender: X-Sasl-enc: Xq/FX1VAt9x5A5YhGAP/Q9epL1QrLG75mDHFGR5fo8NF 1505227092 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id BF9B47F066; Tue, 12 Sep 2017 10:38:12 -0400 (EDT) Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256 To: Michael Paquier , Stephen Frost References: <20170530151432.GW3151@tamriel.snowman.net> <20170530170036.GZ3151@tamriel.snowman.net> <20170531034941.GH3151@tamriel.snowman.net> <20170531235922.GR3151@tamriel.snowman.net> <20170601155042.GG3151@tamriel.snowman.net> <20170602010826.GP3151@tamriel.snowman.net> Cc: Robert Haas , Tom Lane , =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <93ad98a7-5f0c-3153-6015-9376326c5cb7@2ndquadrant.com> Date: Tue, 12 Sep 2017 10:38:12 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 9/10/17 22:37, Michael Paquier wrote: > On Mon, Aug 21, 2017 at 9:51 PM, Michael Paquier > wrote: >> On Tue, Jun 20, 2017 at 1:11 PM, Michael Paquier >> wrote: >>> With the tests directly in the patch, things are easy to run. WIth >>> PG10 stabilization work, of course I don't expect much feedback :) >>> But this set of patches looks like the direction we want to go so as >>> JDBC and libpq users can take advantage of channel binding with SCRAM. >> >> Attached is a new patch set, rebased as of c6293249. > > And again a new set to fix the rotten bits caused by 85f4d63. It seems we should start by sorting out the mechanism by which the client can control what authentication mechanisms it accepts. In your patch set you introduce a connection parameter saslname. I think we should expand that to non-SASL mechanisms and have it be some kind of whitelist or blacklist. It might be reasonable for a client to require "gssapi" or "cert" for example or do an exclusion like "!password !md5 !ldap". Thoughts? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers