Re: [GENERAL] pgpass file type restrictions - Mailing list pgsql-general

From Daniel Verite
Subject Re: [GENERAL] pgpass file type restrictions
Date
Msg-id 6cc8501d-2dc5-4a81-ba09-1d31eeee0d7e@manitou-mail.org
Whole thread Raw
In response to Re: [GENERAL] pgpass file type restrictions  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: rob stone
Date:
Subject: Re: [GENERAL] Problems with the time in data type timestamp withouttime zone
Next
From: "Igal @ Lucee.org"
Date:
Subject: Re: [GENERAL] Using Variables in Queries