From: Stephen Frost <sfrost@snowman.net>
To: Magnus Hagander <magnus@hagander.net>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pg_hba.conf.sample wording improvement
Date: Thu, 29 Apr 2021 11:06:18 -0400
Message-ID: <20210429150618.GT20766@tamriel.snowman.net> (raw)
In-Reply-To: <CABUevEy3iS8SLzuV+0BdN2TsKfjCcT7NNtqWJOm4_KEvK5Z3nQ@mail.gmail.com>
References: <20210428140946.GA13248@alvherre.pgsql>
<cec26985-cdff-1590-8343-b8b06a192b8f@enterprisedb.com>
<CABUevEy3iS8SLzuV+0BdN2TsKfjCcT7NNtqWJOm4_KEvK5Z3nQ@mail.gmail.com>
Greetings,
* Magnus Hagander (magnus@hagander.net) wrote:
> On Thu, Apr 29, 2021 at 7:08 AM Peter Eisentraut
> <peter.eisentraut@enterprisedb.com> wrote:
> > On 28.04.21 16:09, Alvaro Herrera wrote:
> > > Looking at it now, I wonder how well do the "hostno" options work. If I
> > > say "hostnogssenc", is an SSL-encrypted socket good? If I say
> > > "hostnossl", is a GSS-encrypted socket good? If so, how does that make
> > > sense?
> >
> > I think for example if you want to enforce SSL connections, then writing
> > "hostnossl ... reject" would be sensible. That would also reject
> > GSS-encrypted connections, but that would be what you want in that scenario.
>
> I'd say the interface has become a lot less well-matching now that we
> have two separate settings for it. For example right now it's more
> complex to say "reject anything not encrypted", which I bet is what a
> lot of people would want. They don't particularly care if it's gss
> encrypted or ssl encrypted.
I'm not really sure that I agree it's such an issue, particularly since
you have to come up with a way to specify the auth method to use somehow
too as we haven't got any fallback mechanism or anything like that.
While you might use cert-based auth or SCRAM for TLS connections, it
isn't the case that you can use SCRAM with a GSS encrypted connection.
> Perhaps what we want to do (obviously not for 14) is to allow you to
> specify more than one entry in the first column, so you could say
> "hostssl,hostgssenc" on the same row? That would give some strange
> results with the "no" mappings, but it might work if used right?
In general, I'm not against the idea of giving more options but I'm just
not sure that it's a real use-case when you consider that the auth
method also has to be specified. I also don't recall anyone showing up
asking about how they could specify "encrypted but I don't care how".
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-hackers@postgresql.org
Cc: sfrost@snowman.net, magnus@hagander.net, peter.eisentraut@enterprisedb.com, alvherre@alvh.no-ip.org
Subject: Re: pg_hba.conf.sample wording improvement
In-Reply-To: <20210429150618.GT20766@tamriel.snowman.net>
References: <20210428140946.GA13248@alvherre.pgsql> <cec26985-cdff-1590-8343-b8b06a192b8f@enterprisedb.com> <CABUevEy3iS8SLzuV+0BdN2TsKfjCcT7NNtqWJOm4_KEvK5Z3nQ@mail.gmail.com> <20210429150618.GT20766@tamriel.snowman.net>
* 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