pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Desidero <desidero@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pgpass file type restrictions
Date: Thu, 19 Oct 2017 10:20:04 -0400
Message-ID: <30756.1508422804@sss.pgh.pa.us> (raw)
In-Reply-To: <7a53b770-0e6c-4cb5-903d-180ff12d53e2@manitou-mail.org>
References: <7a53b770-0e6c-4cb5-903d-180ff12d53e2@manitou-mail.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

"Daniel Verite" <daniel@manitou-mail.org> writes:
> 	Desidero wrote:
>> When attempting to use something like an anonymous pipe for a
>> passfile, psql throws an error stating that it only accepts plain files

> So the script doing that has access to the password(s) in clear text.
> Can't it instead push the password into the PGPASSWORD
> environment variable, avoiding creating .pgpass in any form?

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

			regards, tom lane


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



view thread (10+ messages)  latest in thread

Message-ID: <30756.1508422804@sss.pgh.pa.us>
Permalink:  ../30756.1508422804@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30756.1508422804@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@manitou-mail.org, desidero@gmail.com
  Subject: Re: pgpass file type restrictions
  In-Reply-To: <30756.1508422804@sss.pgh.pa.us>
  References: <7a53b770-0e6c-4cb5-903d-180ff12d53e2@manitou-mail.org> <30756.1508422804@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox