Re: encrypt psql password in unix script

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: encrypt psql password in unix script
Дата
Msg-id CALd+dceKO-25YxFnjK9SEurKvoFsCWMKWL9F-rkzK09db23fjQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: encrypt psql password in unix script  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general

On Wed, Jul 8, 2015 at 2:46 PM, John R Pierce <pierce@hogranch.com> wrote:
but what security does that gain you?    if someone gets your encrypted/hashed password, he can still log on.   the pgpass file has to be permissions 700, so only YOU (and root) can read it.

Exactly this. If you want a script to authenticate to postgres (or anything else) then somewhere you need something to be in the clear, whether it be the key to decrypt the password or a private key. If you can't trust the local file system and users, then you can't do what you want.

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

Предыдущее
От: Steve Midgley
Дата:
Сообщение: Re: [SQL] encrypt psql password in unix script
Следующее
От: Xavier Stevens
Дата:
Сообщение: Re: [SQL] encrypt psql password in unix script