Re: [GENERAL] pgpass file type restrictions

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: [GENERAL] pgpass file type restrictions
Дата
Msg-id 6cc8501d-2dc5-4a81-ba09-1d31eeee0d7e@manitou-mail.org
обсуждение исходный текст
Ответ на Re: [GENERAL] pgpass file type restrictions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:

> On many platforms, it's possible for other users to see the environment
> variables of a process.  So PGPASSWORD is really quite insecure.

As said in https://www.postgresql.org/docs/current/static/libpq-envars.html
 "PGPASSWORD behaves the same as the password connection parameter. Use of this environment variable is not recommended
forsecurity reasons, as some operating systems allow non-root users to see process environment variables via ps;
insteadconsider using a password file" 

I understand this in the context that PostgreSQL runs on many
operating systems, including ancient ones.
But in the case that the target platform is not afflicted by
"the environment is public" problem, what's best between
PGPASSWORD and .pgpass is a judgment call. Personally
I'm unimpressed by the recommendation above seemingly
favoring the latter, as if it hadn't its own problems.


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: rob stone
Дата:
Сообщение: Re: [GENERAL] Problems with the time in data type timestamp withouttime zone
Следующее
От: "Igal @ Lucee.org"
Дата:
Сообщение: Re: [GENERAL] Using Variables in Queries