Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Álvaro Hernández Tortosa <aht(at)8kdata(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256
Date: 2017-11-28 22:33:10
Message-ID: CAB7nPqQ9+Ot46=y+yWNk4NTc4dEmm+DF=RKWDhC_xUq9L7m55g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

On Wed, Nov 29, 2017 at 7:08 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> On Wed, Nov 29, 2017 at 2:41 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Tue, Nov 28, 2017 at 11:10 AM, Peter Eisentraut
>> <peter(dot)eisentraut(at)2ndquadrant(dot)com> wrote:
>>> 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.
>>
>> I think that would be a good thing to have.
>
> Sure. How do we shape that though? I would think about an extra option
> for a scram-sha-256 entry with channel-binding=on|off|choice, choice
> being what is currently on HEAD with letting the client decide to use
> it or not.

Sorry, mind-slipping of the morning. Having an option from the server
would help in restricting access, so there could be some use for it
but not for testing coverage. Still how do we want to shape that for
the client? I can think of two possibilities:
1) Have a special value in the parameter saslchannelbinding proposed
in patch 0001. For example by specifying "none" then no channel
binding is used.
2) Use a dedicated parameter which is a on-off switch.
Any thoughts?
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2017-11-28 22:34:08 Re: pgindent run?
Previous Message Mark Dilger 2017-11-28 22:26:44 Re: Updated macOS start scripts

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Eisentraut 2017-11-28 22:42:22 Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256
Previous Message Michael Paquier 2017-11-28 22:08:44 Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256