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: Stephen Frost <sfrost@snowman.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Álvaro Hernández Tortosa <aht@8kdata.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256
Date: Thu, 14 Sep 2017 12:58:44 -0400
Message-ID: <11303406-ad5b-96c2-bcbe-3e3781519215@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqS1pwjXZRae5mEPhbzmRf1UPu+dzvRwHU6Bb60t7Fy-JQ@mail.gmail.com>
References: <20170530151432.GW3151@tamriel.snowman.net>
	<20170530170036.GZ3151@tamriel.snowman.net>
	<CA+TgmoY66SofTi87W-X6OgK6DzfVO2RhQr91Ley5dzg-JgYfTw@mail.gmail.com>
	<20170531034941.GH3151@tamriel.snowman.net>
	<CA+TgmoZ_RVwKjLCJzCdv-_QpxrQZOSGipXBwT_iX5kpNHbT1_g@mail.gmail.com>
	<20170531235922.GR3151@tamriel.snowman.net>
	<CA+TgmoaVZuuOqnKGiB4oMF8kWsohEQF1jMgfy4b=-mPzoq0kdQ@mail.gmail.com>
	<20170601155042.GG3151@tamriel.snowman.net>
	<CA+TgmobTz6cftKYsg2xMdFsC=PxGFysbvd06s=NedgMUV8E82w@mail.gmail.com>
	<20170602010826.GP3151@tamriel.snowman.net>
	<CAB7nPqQOFSn-PYpEXawFx5Gh0CSwX6kPR4ib+T5qmd7OVsV=PA@mail.gmail.com>
	<CAB7nPqTRUji5Lz8Rwg0MV9yYV8VQHbkCqG6Gmi36Dw+U72E7Ng@mail.gmail.com>
	<CAB7nPqT5ov4roTKdvAAq4UhJ=QFeNT6QfmFjx4osY6x3MTf_zA@mail.gmail.com>
	<CAB7nPqRnemzvQ_-o3D9Y=6E+uSYnvj_aqLR1Z-QhC3Fk1K=W2A@mail.gmail.com>
	<93ad98a7-5f0c-3153-6015-9376326c5cb7@2ndquadrant.com>
	<CAB7nPqS1pwjXZRae5mEPhbzmRf1UPu+dzvRwHU6Bb60t7Fy-JQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 9/12/17 19:03, Michael Paquier wrote:
> Once channel binding is involved though.. This needs to be extended
> and this needs careful thoughts:
> * "scram-sha-256" means that the version without channel binding is
> accepted. "!scram-sha-256" means that scram without channel binding is
> refused.
> * "scram-sha-256-plus" means that all channel bindings are accepted.
> "!scram-sha-256-plus" means that no channel binding are accepted.
> After that there is some filtering per channel binding name. Do we
> want a separate parameter or just filter with longer names like
> "scram-sha-256-plus-tls-unique" and
> "scram-sha-256-plus-tls-server-end-point"? The last one gets
> particularly long, this does not help users with typos :)

Second thoughts, to make things simpler.  All we need for channel
binding is a connection flag that says "I require channel binding".  It
could be modeled after the sslmode parameter, e.g., cbind=disable (maybe
for debugging), cbind=prefer (default), cbind=require.  If you specify
"require", then libpq would refuse to proceed unless scram-sha2-256-plus
(or future similar mechanisms) was offered for authentication.

We don't even need a parameter that specifies which channel binding type
to use.  If libpq implements tls-unique, it should always use that.  We
might need a flag for testing other types, but that should not be an
in-the-user's-face option.

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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (75+ messages)  latest in thread

Message-ID: <11303406-ad5b-96c2-bcbe-3e3781519215@2ndquadrant.com>
Permalink:  ../11303406-ad5b-96c2-bcbe-3e3781519215@2ndquadrant.com/
Also on:    postgresql.org/message-id/11303406-ad5b-96c2-bcbe-3e3781519215@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, sfrost@snowman.net, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, aht@8kdata.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256
  In-Reply-To: <11303406-ad5b-96c2-bcbe-3e3781519215@2ndquadrant.com>
  References: <20170530151432.GW3151@tamriel.snowman.net> <CA+TgmoY66SofTi87W-X6OgK6DzfVO2RhQr91Ley5dzg-JgYfTw@mail.gmail.com> <20170531034941.GH3151@tamriel.snowman.net> <CA+TgmoZ_RVwKjLCJzCdv-_QpxrQZOSGipXBwT_iX5kpNHbT1_g@mail.gmail.com> <20170531235922.GR3151@tamriel.snowman.net> <CA+TgmoaVZuuOqnKGiB4oMF8kWsohEQF1jMgfy4b=-mPzoq0kdQ@mail.gmail.com> <20170601155042.GG3151@tamriel.snowman.net> <CA+TgmobTz6cftKYsg2xMdFsC=PxGFysbvd06s=NedgMUV8E82w@mail.gmail.com> <20170602010826.GP3151@tamriel.snowman.net> <CAB7nPqQOFSn-PYpEXawFx5Gh0CSwX6kPR4ib+T5qmd7OVsV=PA@mail.gmail.com> <CAB7nPqTRUji5Lz8Rwg0MV9yYV8VQHbkCqG6Gmi36Dw+U72E7Ng@mail.gmail.com> <CAB7nPqT5ov4roTKdvAAq4UhJ=QFeNT6QfmFjx4osY6x3MTf_zA@mail.gmail.com> <CAB7nPqRnemzvQ_-o3D9Y=6E+uSYnvj_aqLR1Z-QhC3Fk1K=W2A@mail.gmail.com> <93ad98a7-5f0c-3153-6015-9376326c5cb7@2ndquadrant.com> <CAB7nPqS1pwjXZRae5mEPhbzmRf1UPu+dzvRwHU6Bb60t7Fy-JQ@mail.gmail.com> <11303406-ad5b-96c2-bcbe-3e3781519215@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