Re: Postgres security issue - protecting datafiles - Mailing list pgsql-admin

From Tino Schwarze
Subject Re: Postgres security issue - protecting datafiles
Date
Msg-id 20080604160316.GH23526@easy2.in-chemnitz.de
Whole thread Raw
In response to Postgres security issue - protecting datafiles  (zferentz@gmail.com)
List pgsql-admin
On Mon, Jun 02, 2008 at 03:16:54PM -0700, zferentz@gmail.com wrote:

> I'd like to use postgres to store my secret data  in a way that only
> me (the DBA, owner of the table) can access the talbe while the root
> (system administrator) who installed and maintains the server - will
> not be able to see the data.
>
> Now, I think that "db authentication"  is simply not enough , because
> the administrator can copy the data files to his own machine (where he
> is the owner of the database).
>
> Is there a way to protect the data files, so even the "malicious
> administrator" cannot see the data ?

I suppose, you need to look into SELinux. That might give you the
infrastructure for such purposes, together with an encrypted file
system for DB space.

That's not something you can do via an application. As you already
noticed, anybody with access to the physical table data will be able to
copy it. Of course, you could encrypt the data stored in the table, but
then: where's the key for decryption?

Tino.

--
"What we resist, persists." (Zen saying)

www.craniosacralzentrum.de
www.forteego.de

pgsql-admin by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: Postgres security issue - protecting datafiles
Next
From: Marcin Kasperski
Date:
Subject: Re: Postgres security issue - protecting datafiles