pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Álvaro Hernández Tortosa <aht@8kdata.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256
Date: Tue, 19 Dec 2017 11:19:58 -0500
Message-ID: <0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqRrAFZCSk3xMd7=sXtVO2Y_N=NCGG14Mivu_L9XpP4mEQ@mail.gmail.com>
References: <20170530151432.GW3151@tamriel.snowman.net>
	<7fe055c6-0885-833b-054d-124e3c3acdf9@2ndquadrant.com>
	<CAB7nPqR0gdahOGJPnsuZv5tMeX+AbwrvRF1CXofqqk94aRrN+Q@mail.gmail.com>
	<887b6fb7-15fe-239e-2aad-5911d2b0945b@2ndquadrant.com>
	<CAB7nPqQiYEXthThDY8+ye=B-zYam7cE+daFYPOmY8hwVSZxGjw@mail.gmail.com>
	<b657ef4c-ce91-7a11-039b-7d97cd950289@2ndquadrant.com>
	<CAB7nPqS8UVX5FMSg23wKsAMeK6yNbpQGaAci9t1jbHFGr-EvQg@mail.gmail.com>
	<CAB7nPqQZZeyRjGGR1oK+hdFnoOWZ6VdSeCteqXvRAUnDe1uEXg@mail.gmail.com>
	<CAB7nPqS1ZekH6wCzyD_jHZBXmo6=0B6JBBTbwaKJg0j07osdog@mail.gmail.com>
	<2751aafc-8341-1c3d-c3e2-5abed914a6a4@2ndquadrant.com>
	<CA+TgmoZjDagOA+wH8eoN4bvUbudyYBgr+ar__RQxksOU-dzkDQ@mail.gmail.com>
	<CAB7nPqQ6twidjk7PPwkgucE6eFfHfc3EAkeWyxANWFyUAj_AeQ@mail.gmail.com>
	<CAB7nPqQ9+Ot46=y+yWNk4NTc4dEmm+DF=RKWDhC_xUq9L7m55g@mail.gmail.com>
	<6de87398-a9da-aa8b-a4c2-ca06ef8d757c@2ndquadrant.com>
	<CAB7nPqRrAFZCSk3xMd7=sXtVO2Y_N=NCGG14Mivu_L9XpP4mEQ@mail.gmail.com>

On 11/30/17 21:11, Michael Paquier wrote:
> OK, here is a reworked version with the following changes:
> - renamed saslchannelbinding to scramchannelbinding, with a default
> set to tls-unique.
> - An empty value of scramchannelbinding allows client to not use
> channel binding, or in short use use SCRAM-SHA-256 and cbind-flag set
> to 'n'.
> 
> While reviewing the code, I have found something a bit disturbing with
> the header definitions: the libpq frontend code includes scram.h,
> which references backend-side routines. So I think that the definition
> of the SCRAM mechanisms as well as the channel binding types should be
> moved to scram-common.h. This cleanup is included in 0001.

I have committed 0001 and 0002 (renaming to scram_channel_binding).

The 0003 patch looks mostly fine as well.  The only concern I have is
that the way it is set up now, we make the server compute the channel
binding data for both tls-unique and tls-server-end-point, even though
we only end up using one.  This might need some restructuring so that we
only get the data we need once we have learned which channel binding
type the client requested.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (75+ messages)  latest in thread

Message-ID: <0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com>
Permalink:  ../0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com/
Also on:    postgresql.org/message-id/0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com

 · 

reply

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: peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, robertmhaas@gmail.com, aht@8kdata.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256
  In-Reply-To: <0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.com>
  References: <20170530151432.GW3151@tamriel.snowman.net> <CAB7nPqR0gdahOGJPnsuZv5tMeX+AbwrvRF1CXofqqk94aRrN+Q@mail.gmail.com> <887b6fb7-15fe-239e-2aad-5911d2b0945b@2ndquadrant.com> <CAB7nPqQiYEXthThDY8+ye=B-zYam7cE+daFYPOmY8hwVSZxGjw@mail.gmail.com> <b657ef4c-ce91-7a11-039b-7d97cd950289@2ndquadrant.com> <CAB7nPqS8UVX5FMSg23wKsAMeK6yNbpQGaAci9t1jbHFGr-EvQg@mail.gmail.com> <CAB7nPqQZZeyRjGGR1oK+hdFnoOWZ6VdSeCteqXvRAUnDe1uEXg@mail.gmail.com> <CAB7nPqS1ZekH6wCzyD_jHZBXmo6=0B6JBBTbwaKJg0j07osdog@mail.gmail.com> <2751aafc-8341-1c3d-c3e2-5abed914a6a4@2ndquadrant.com> <CA+TgmoZjDagOA+wH8eoN4bvUbudyYBgr+ar__RQxksOU-dzkDQ@mail.gmail.com> <CAB7nPqQ6twidjk7PPwkgucE6eFfHfc3EAkeWyxANWFyUAj_AeQ@mail.gmail.com> <CAB7nPqQ9+Ot46=y+yWNk4NTc4dEmm+DF=RKWDhC_xUq9L7m55g@mail.gmail.com> <6de87398-a9da-aa8b-a4c2-ca06ef8d757c@2ndquadrant.com> <CAB7nPqRrAFZCSk3xMd7=sXtVO2Y_N=NCGG14Mivu_L9XpP4mEQ@mail.gmail.com> <0eeb65bc-7f7d-064f-bbe2-5814c9763873@2ndquadrant.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