pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Hugh Ranalli <hugh@whtc.ca>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Channel binding not supported using scram-sha-256 passwords
Date: Fri, 15 Feb 2019 16:14:17 -0500
Message-ID: <20190215211417.GC14824@momjian.us> (raw)
In-Reply-To: <CAAhbUMO89SqUk-5mMY+OapgWf-twF2NA5sCucbHEzMfGbvcepA@mail.gmail.com>
References: <CAAhbUMO89SqUk-5mMY+OapgWf-twF2NA5sCucbHEzMfGbvcepA@mail.gmail.com>

On Fri, Feb 15, 2019 at 03:41:37PM -0500, Hugh Ranalli wrote:
> 
> I've been trying to implement scram-sha-256 passwords on PostgreSQL 11.1.
> However, connection attempts whether through Python (psycopg2) or psql fail
> with the message: "channel binding not supported by this build." I've tried
> clearing scram_channel_binding in my global psqlrc ("\set
> scram_channel_binding"), with no success.
> 
> We are not using SSL for the connections, and the documentation labels this as
> an SASL authentication mechanism. Is SSL required for using scram-sha-256
> passwords? What am I missing?

The PG 11 release notes are clear that channel binding is not supported
in a usable way yet:

	https://www.postgresql.org/docs/11/release-11.html

	Add ability to use channel binding when using SCRAM authentication
	(Michael Paquier)
	
	Channel binding is intended to prevent man-in-the-middle attacks, but
	SCRAM cannot prevent them unless it can be forced to be active.
	Unfortunately, there is no way to do that in libpq. Support for it is
	expected in future versions of libpq and in interfaces not built using
	libpq, e.g. JDBC.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




view thread (14+ messages)  latest in thread

Message-ID: <20190215211417.GC14824@momjian.us>
Permalink:  ../20190215211417.GC14824@momjian.us/
Also on:    postgresql.org/message-id/20190215211417.GC14824@momjian.us

 · 

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-general@postgresql.org
  Cc: bruce@momjian.us, hugh@whtc.ca
  Subject: Re: Channel binding not supported using scram-sha-256 passwords
  In-Reply-To: <20190215211417.GC14824@momjian.us>
  References: <CAAhbUMO89SqUk-5mMY+OapgWf-twF2NA5sCucbHEzMfGbvcepA@mail.gmail.com> <20190215211417.GC14824@momjian.us>

* 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