Re: Looking for advice on database encryption

From: "Tim Bruce - Postgres" <postgres(at)tbruce(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Looking for advice on database encryption
Date: 2009-04-16 20:30:56
Message-ID: 3488.192.136.50.130.1239913856.squirrel@sm.tbruce.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, April 16, 2009 13:20, Bill Moran wrote:
> In response to Thomas Kellerer <spam_eater(at)gmx(dot)net>:
>
>> Bill Moran wrote on 16.04.2009 21:40:
>> > The goal here is that if we're going to encrypt the data, it should
>> > be encrypted in such a way that if an attacker gets ahold of a dump
>> > of the database, they still can't access the data without the
>> > passphrases of the individuals who entered the data.
>>
>> I'm by far not an expert, but my naive attempt would be to store the the
>> database files in an encrypted filesystem.
>
> That was the first suggestion when we started brainstorming ideas.
> Unfortunately, it fails to protect us from the most likely attack
> vector: SQL Injection/application layer bugs. In an SQL Injection
> (for example) the fact that the filesystem is encrypted does zero
> to protect the sensitive data.
>
> --
> Bill Moran
> http://www.potentialtech.com
> http://people.collaborativefusion.com/~wmoran/
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

I'll chime in here, even though I probably shouldn't. A lot is dependent
on what standard you're trying to meet. General Security (and Common
Sense) vs PCI/DSS vs NSA/DoD vs some other standard.

Do you need to decrypt the values once they're in the system?

Do you need the items in an index?

Do the values need to be part of a constraint / foreign key relationship
(because a hashed value may cause you a lot of headaches!)?

Look at these different scenarios and think about the data (both in
encrypted format and unencrypted format) before you decide HOW you want to
do it.

Tim
--
Timothy J. Bruce

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Atkins 2009-04-16 20:37:36 Re: Looking for advice on database encryption
Previous Message Bill Moran 2009-04-16 20:20:25 Re: Looking for advice on database encryption