From: Álvaro Hernández Tortosa <aht@8kdata.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: PostgreSQL JDBC List <pgsql-jdbc@postgresql.org>
Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256
Date: Wed, 31 May 2017 03:50:26 +0200
Message-ID: <49413008-40a0-3223-e957-c10d882e5119@8kdata.com> (raw)
In-Reply-To: <CAB7nPqShOtc15RyUrsX31StGOXwT9hDW1MPt49_OiR50p-sfSw@mail.gmail.com>
References: <CAB7nPqTZxVG9Lk0Ojg7wUR4mhGGd_W=Qa4+7wuhy6k75kE9keg@mail.gmail.com>
<4e65d7cc-63bd-9515-83d6-85b03dbb4f21@8kdata.com>
<CA+TgmoaFxzTJ0Rmya8PkW0ZLV8wF95Cj1Cvts7aFxoxKF1aO9g@mail.gmail.com>
<13406.1496155822@sss.pgh.pa.us>
<20170530151432.GW3151@tamriel.snowman.net>
<CAB7nPqQx+A9gYeQz20XS1roje0BwY3MS=3gN0UbOQFiPi_Uzxw@mail.gmail.com>
<20170530170036.GZ3151@tamriel.snowman.net>
<CA+TgmoY66SofTi87W-X6OgK6DzfVO2RhQr91Ley5dzg-JgYfTw@mail.gmail.com>
<CAB7nPqShOtc15RyUrsX31StGOXwT9hDW1MPt49_OiR50p-sfSw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 31/05/17 03:39, Michael Paquier wrote:
> On Tue, May 30, 2017 at 5:59 PM, Robert Haas <robertmhaas@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: aht@8kdata.com, michael.paquier@gmail.com, robertmhaas@gmail.com, sfrost@snowman.net, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256
In-Reply-To: <49413008-40a0-3223-e957-c10d882e5119@8kdata.com>
References: <CAB7nPqTZxVG9Lk0Ojg7wUR4mhGGd_W=Qa4+7wuhy6k75kE9keg@mail.gmail.com> <4e65d7cc-63bd-9515-83d6-85b03dbb4f21@8kdata.com> <CA+TgmoaFxzTJ0Rmya8PkW0ZLV8wF95Cj1Cvts7aFxoxKF1aO9g@mail.gmail.com> <13406.1496155822@sss.pgh.pa.us> <20170530151432.GW3151@tamriel.snowman.net> <CAB7nPqQx+A9gYeQz20XS1roje0BwY3MS=3gN0UbOQFiPi_Uzxw@mail.gmail.com> <20170530170036.GZ3151@tamriel.snowman.net> <CA+TgmoY66SofTi87W-X6OgK6DzfVO2RhQr91Ley5dzg-JgYfTw@mail.gmail.com> <CAB7nPqShOtc15RyUrsX31StGOXwT9hDW1MPt49_OiR50p-sfSw@mail.gmail.com> <49413008-40a0-3223-e957-c10d882e5119@8kdata.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox