Re: Where do you store key for encryption

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Where do you store key for encryption
Дата
Msg-id b42b73150911171954n6cd44784p2fe2e115b77d6075@mail.gmail.com
обсуждение исходный текст
Ответ на Where do you store key for encryption  ("Naoko Reeves" <naoko@lawlogix.com>)
Ответы Re: Where do you store key for encryption
Список pgsql-general
On Tue, Nov 17, 2009 at 10:12 PM, Naoko Reeves <naoko@lawlogix.com> wrote:
> Hi,
>
> We have web application and encrypt PII columns. We use encrypt/decrypt
> function for this.
>
> Currently we hard coded the key in postgresql function which I am not sure
> of it.
>
> I did google it and people suggest that it needed to be stored in physically
> isolated location (storing decryption key on the same server as the data is
> kind of like writing your PIN on your ATM card).

Key management is a complicated topic, but I can tell you this for
sure: storing the key in the function is one of the worst places to do
it :-)  Any user can pull down the entire pg_proc table and see all
your functions! (this is somewhat fixable, but It's still not the
right place IMO).

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error when creating table with boolean data type
Следующее
От: "Naoko Reeves"
Дата:
Сообщение: Re: Where do you store key for encryption