Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFsmY-0000Q6-Ey for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2017 01:50:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFsmY-0000cB-05 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2017 01:50:42 +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 1dFsmV-0000TY-EW for pgsql-hackers@postgresql.org; Wed, 31 May 2017 01:50:39 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dFsmN-0003yB-R8 for pgsql-hackers@postgresql.org; Wed, 31 May 2017 01:50:38 +0000 Received: by mail-wr0-x22c.google.com with SMTP id q97so955898wrb.2 for ; Tue, 30 May 2017 18:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8kdata-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=lcj4z3CGW3RiAU6RblsD8HY7dAAA/dbMo1As4zV1eZ0=; b=eczM3OwHjVhuq1Pl4oEVqQQl53yJVnDBySfWeYHAIMCXx5RatdffImFJBodlt7uJIU Rq1rzuUMKSRSZYwyo1yo2PBZAIKxBuf6aW1D/i0gDmdZtCfiX/jXP9I0z6Z8xFUm7bQa v70j0b4O2pb0D2lIasPMpCB7GNhkawzQVLLIFTCyic5skNzSdxEGwp4xuYsZful2ac0+ z+iONJxBQkJZ2thOEkFmjuYrhvOxw1ffSu7m7i0tqMuqdM0r4j/xM3+N5uWCRnf/fl7d 8eprgeFm9f87s7fFa8lXzC3wxwRpMxe+uN1oRP7NBmtkbc0Z9c+xmh2CTyBcDsU8xbeP z1fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=lcj4z3CGW3RiAU6RblsD8HY7dAAA/dbMo1As4zV1eZ0=; b=VRx5frHCA2TXaT41cGN93KLCk4e4oFueRdUMcnVfJPbQIgowX5egLbH/HAkMOAegzQ QPRsEMH8XUbZjGy9VcL5HHSO7DrJhD2an3AscNkCGrc0DFDYd94DQ3N/mKUMgH8Lr36+ ecA5IJoSwDT2mNGSNkqVGJtVKJjcp+nk2Qad5UqtaQWY0DBUJZJOZTewFEYQ6OFWgM5P nhnHwcCem+lCGlqKmLumiesp7FPxq6WuSH4Ol02kPhH3pVm3eg0IU3eYLgfsIkH9HlMR ztaF2GX1gmwXwxAYHyEe3Z4KyATzymHf3wl9st/xobZ8zE5frRmzch9UZ92TB/4ScLYg Zp1A== X-Gm-Message-State: AODbwcCvB++vfORvC+v/L0YdMd+A4TCN+6uu5LhUnWGWIzXzSOpMI/d7 WuheESPJqGAbPxZq X-Received: by 10.223.178.85 with SMTP id y21mr16212666wra.58.1496195429451; Tue, 30 May 2017 18:50:29 -0700 (PDT) Received: from [192.168.43.230] ([31.4.247.139]) by smtp.gmail.com with ESMTPSA id s95sm7562982wrc.13.2017.05.30.18.50.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 18:50:28 -0700 (PDT) Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256 To: Michael Paquier , Robert Haas Cc: Stephen Frost , Tom Lane , "pgsql-hackers@postgresql.org" , PostgreSQL JDBC List References: <4e65d7cc-63bd-9515-83d6-85b03dbb4f21@8kdata.com> <13406.1496155822@sss.pgh.pa.us> <20170530151432.GW3151@tamriel.snowman.net> <20170530170036.GZ3151@tamriel.snowman.net> From: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= Message-ID: <49413008-40a0-3223-e957-c10d882e5119@8kdata.com> Date: Wed, 31 May 2017 03:50:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Pg-Spam-Score: -1.1 (-) 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 31/05/17 03:39, Michael Paquier wrote: > On Tue, May 30, 2017 at 5:59 PM, Robert Haas wrote: >> That sounds like undue optimism to me. Unless somebody's tested that >> Michael's proposed implementation, which uses undocumented OpenSSL >> APIs, actually interoperates properly with a SCRAM + channel binding >> implementation based on some other underlying SSL implementation, we >> can't really know that it's going to work. It's not like we're >> calling SSL_do_the_right_thing_for_channel_binding_thing_per_rfc5929(). >> We're calling SSL_do_something_undocumented() and hoping that >> something_undocumented == >> the_right_thing_for_channel_binding_thing_per_rfc5929. Could be true, >> but without actual interoperability testing it sounds pretty >> speculative to me. > Hm? Python is using that stuff for a certain amount of years now, for > the same goal of providing channel binding for SSL authentication. You > can look at this thread: > https://bugs.python.org/issue12551 > So qualifying that as a speculative method sounds a quite hard word to me. Actually this Python patch seems to ultimately rely on the same OpenSSL functions as your implementation. I don't have anything against implementing tls-unique, specially as per the RFC it is mandatory (if channel binding support is provided). However, given the use of undocumented API, given that at least the Java driver would have a very difficult time implementing it (basically replacing Java's standard SSL stack with a completely external one, BouncyCastle, which adds load, size and complexity), I would rather focus the efforts on tls-server-end-point which only needs to access the certificate data, something that most APIs/frameworks/languages seem to cover much more naturally than tls-unique. Both are equally safe and effective and so having support for both seems sensible to me. Álvaro -- Álvaro Hernández Tortosa ----------- <8K>data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers