Re: Spoofing as the postmaster - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Spoofing as the postmaster
Date
Msg-id 20071227221357.GI5031@tamriel.snowman.net
Whole thread Raw
In response to Re: Spoofing as the postmaster  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Spoofing as the postmaster  (Magnus Hagander <magnus@hagander.net>)
Re: Spoofing as the postmaster  (Greg Smith <gsmith@gregsmith.com>)
List pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Most Linux distros don't have SELinux, AFAIK, so this is probably not a
> very useful suggestion.  Not that I have a problem with Red-Hat-specific
> solutions ;-)

Debian also has SELinux, if one wishes to configure it.  I suspect other
Debian-derived distributions also have it as a result.  It can certainly
be a pain to configure but it's far from impossible and if an SA has
concerns such as those described, well, I'd be kind of suprised if they
weren't considering SELinux (if they're on Linux anyway).

> ... but since one of the arguments being made against
> move-the-socket is that it introduces a lot of platform-specific
> assumptions, we have to apply that same criterion to alternative
> answers.

I don't quite follow how one argues 'against' SELinux in this context
as I don't believe upstream changes would be required here.  Just a
policy configuration whereby only the postgres user can listen on port
5432.

> As far as ensuring security from the server end, what about extending
> the pg_hba.conf options to require that the server has both checked
> a client certificate and presented its own certificate?  (I'm not sure
> whether OpenSSL provides a way to determine that, though.)

It'd be really nice to be able to have client-side certificates used for
authentication by having a way to associate a certificate (or maybe at
least the DN, but you can have dups) to a user.  That's a seperate
conversation tho, really.
Thanks,        Stephen

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Archiver behavior at shutdown
Next
From: Magnus Hagander
Date:
Subject: Re: Spoofing as the postmaster