Re: Negotiating the SCRAM channel binding type

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Negotiating the SCRAM channel binding type
Date: 2018-08-05 12:30:43
Message-ID: 73584d01-9cbb-4347-3c74-98ddcc3498c8@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05/08/18 15:08, Michael Paquier wrote:
> On Sun, Aug 05, 2018 at 02:00:04PM +0300, Heikki Linnakangas wrote:
>> I did some further testing with this, compiling with and without
>> HAVE_BE_TLS_GET_CERTIFICATE_HASH and HAVE_PGTLS_GET_PEER_CERTIFICATE_HASH,
>> and fixed a few combinations that did not work. And I fixed the other
>> comment typos etc. that you pointed out.
>
> Two things that I am really unhappy about is first that you completely
> wiped out the test suite for channel binding. We know that channel
> binding will be used once HAVE_X509_GET_SIGNATURE_NID is set, hence why
> didn't you keep the check on supports_tls_server_end_point to determine
> if the connection should be a failure or a success?

That test just tested that the scram_channel_binding libpq option works,
but I removed the option. I know you wanted to keep it as a feature
flag, but as discussed earlier, I don't think that'd be useful.

> Then, I also find the meddling around HAVE_X509_GET_SIGNATURE_NID and
> the other flags over-complicated, but I won't fight hard on that point
> if you want to go your way.

I don't feel too strongly about this either, so if you want to write a
patch to refactor that, I'm all ears. Note that I had to do something,
so that the server code knows whether to advertise SCRAM-SHA-256-PLUS or
not, and likewise that the client knows whether to choose channel
binding or not.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-08-05 12:45:34 Re: Negotiating the SCRAM channel binding type
Previous Message Michael Paquier 2018-08-05 12:08:08 Re: Negotiating the SCRAM channel binding type