From: Stephen Frost <sfrost@snowman.net>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: postgres@freigeist.org, pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14543: libpq fails with group readable ssl keys
Date: Tue, 28 Feb 2017 10:53:55 -0500
Message-ID: <20170228155355.GI9812@tamriel.snowman.net> (raw)
In-Reply-To: <CABUevEy_2t7N2C0dM=9Fyj9+SMzpxyawpOzWpAPOtx0UX=W_vA@mail.gmail.com>
References: <20170213184323.6099.18278@wrigleys.postgresql.org>
<20170227225845.GG421@momjian.us>
<5436.1488236853@sss.pgh.pa.us>
<CABUevEy_2t7N2C0dM=9Fyj9+SMzpxyawpOzWpAPOtx0UX=W_vA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
* Magnus Hagander (magnus@hagander.net) wrote:
> On Tue, Feb 28, 2017 at 12:07 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Bruce Momjian <bruce@momjian.us> writes:
> > > We changed Postgres 9.6 to allow open group permissions on the
> > > _server_'s SSL key if it was owned by root:
> > > Allow the server's <acronym>SSL</> key file to have group read
> > > access if it is owned by <literal>root</> (Christoph Berg)
> > > Is this something we should change on the client? I don't see why not,
> > > but the 'root' requirement would still remain.
> >
> > I'm pretty suspicious of doing this on the client side. It doesn't seem
> > as useful, and it would open up a bunch of issues concerning e.g. what
> > cert authentication actually is authenticating.
>
> It does rapidly tread into platform-specific behaviour and exactly how
> groups are used, yeah.
Agreed.
> I wonder if a better choice might be to have a way to override the
> behavior. We're mostly trying to defend against an accidental
> misconfiguration after all. So perhaps we should have a way to specify
> something like sslkey=/foo/bar:insecure or something like that, which would
> ignore the permissions check on it. In this case it's very clearly a
> *voluntary* configuration that the user did, and therefor any analysis of
> the security of doing it is on them, but we retain the default behavior of
> clearly pointing out to a user that what they're doing might be insecure?
Well, I'm not keen on forcing users to say 'insecure' when, for their
particular environment, it might be just fine. "nopermcheck" or
something would be better, imv. As long as it's clearly a user
requested behavior, I don't see any issue with it.
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-bugs@postgresql.org
Cc: sfrost@snowman.net, magnus@hagander.net, tgl@sss.pgh.pa.us, bruce@momjian.us
Subject: Re: BUG #14543: libpq fails with group readable ssl keys
In-Reply-To: <20170228155355.GI9812@tamriel.snowman.net>
References: <20170213184323.6099.18278@wrigleys.postgresql.org> <20170227225845.GG421@momjian.us> <5436.1488236853@sss.pgh.pa.us> <CABUevEy_2t7N2C0dM=9Fyj9+SMzpxyawpOzWpAPOtx0UX=W_vA@mail.gmail.com> <20170228155355.GI9812@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