Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJiSv-0004Ku-NV for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Nov 2017 16:10:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJiSv-0005C6-AO for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Nov 2017 16:10:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJiSv-0005Bv-3y for pgsql-hackers@lists.postgresql.org; Tue, 28 Nov 2017 16:10:33 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eJiSq-0005Gy-H9 for pgsql-hackers@postgresql.org; Tue, 28 Nov 2017 16:10:32 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 13DB620A98; Tue, 28 Nov 2017 11:10:26 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 28 Nov 2017 11:10:26 -0500 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; s=fm1; bh=nW/41H wRcYv7HfMDcEskC0tXQu8+TTuyE7iv4F8tIMY=; b=GiUDh5Wl3tUwDaHeVvJwaP Ou5PC71p3Kd70ud4kMaWrfhp7TzBnFFLCTTS4eAj2UmQ0OQTkh6TyKIr5wygPEaf Pc/G4Bzszvgip2V9abjSlUBuTOuOtRB6gqslRO+RKEdySlUpLSVne+WP1kD7h7BV nQ20ItchL12frXnUNNl1hytqASVRy6/X4yuy+GQITu1f9dK2KaF/EzwCV+muIyRG yPztNiVF61B/wnLUnsjCtWpNXlCsNsLhf2CpJauRAk3rTd5+kHjjiWJz/lgFjSS6 IGb/ZjG1OLKXc+hq11/xj/rfOAy4I+Fp4Wr+yjKb4oMXIgS3hcPTWzg7pau+I14w == X-ME-Sender: 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 BB5127EDB4; Tue, 28 Nov 2017 11:10:25 -0500 (EST) Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256 To: Michael Paquier References: <20170530151432.GW3151@tamriel.snowman.net> <7fe055c6-0885-833b-054d-124e3c3acdf9@2ndquadrant.com> <887b6fb7-15fe-239e-2aad-5911d2b0945b@2ndquadrant.com> Cc: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <2751aafc-8341-1c3d-c3e2-5abed914a6a4@2ndquadrant.com> Date: Tue, 28 Nov 2017 11:10:25 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/26/17 06:59, Michael Paquier wrote: > On Tue, Nov 21, 2017 at 1:36 PM, Michael Paquier > wrote: >> So attached are rebased patches: >> - 0001 to introduce the connection parameter saslchannelbinding, which >> allows libpq to enforce the type of channel binding used during an >> exchange. >> - 0002 to add tls-endpoint as channel binding type, which is where 0001 shines. > > Attached is a rebased patch set, documentation failing to compile. I > am moving at the same time this patch set to the next commit fest. I think these are SCRAM channel bindings, not SASL channel bindings, so the parameter should be named accordingly. I also wonder whether there should be a mechanism to turn off channel binding from the client. Right now, there is no way to test the non-PLUS mechanism in an SSL build. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services