Re: pg_hba.conf alternative - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: pg_hba.conf alternative
Date
Msg-id 43E9F2E7.5090100@dunslane.net
Whole thread Raw
In response to pg_hba.conf alternative  (Q Beukes <pgsql-dev@list.za.net>)
Responses Re: pg_hba.conf alternative
Re: pg_hba.conf alternative
List pgsql-hackers

Q Beukes wrote:

>Hello,
>
>Is there not some other alternative to pg_hba.conf?
>
>I have the problem where the system administrators at our company
>obviously have access to the whole filesystem, and our database records
>needs to be hidden even from them.
>
>With pg_hba.conf that is not possible, as they just change all the conf
>lines to "trust" auth and viola they have access to the database without
>passwords.
>
>Is there a more secure alternative to this? The perfect scenario being
>to deny everyone include "root" access to a database without a password.
>
>
>  
>

This is an illusion, as plenty of security experts will tell you. 
Password auth is a losing game for high security in the first place. So 
this comment shows that you haven't thought this out properly.

If you want the data hidden from system administrators, you need to have 
the client encrypt it before storing it. Of course, that will have 
massive implications for your application.

There are no simple solutions. See here for why: 
http://www.acm.org/classics/sep95/

cheers

andrew


pgsql-hackers by date:

Previous
From: "Mark Woodward"
Date:
Subject: Re: pg_hba.conf alternative
Next
From: "Mark Woodward"
Date:
Subject: Re: pg_hba.conf alternative