pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Georg Sauthoff <mail@gms.tf>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15930: Redact PGPASSWORD environment variable in psql
Date: Tue, 30 Jul 2019 11:29:43 +0900
Message-ID: <20190730022943.GD1742@paquier.xyz> (raw)
In-Reply-To: <20190729183739.GA5321@dell12.lru.li>
References: <20360.1564241009@sss.pgh.pa.us>
	<20190729183739.GA5321@dell12.lru.li>

On Mon, Jul 29, 2019 at 08:37:39PM +0200, Georg Sauthoff wrote:
>> Having psql try to clear it out
>> seems rather pointless to me, as (a) that does nothing for instances
>> of the value that appear in the environments of ancestor processes,
> 
> I don't know why you bring that up. It would only be pointless if the
> password would appear in the original environment vector of ancestor
> processes. It would also be pointless if an ancestor process would write
> it to disk. But why would you want to do that?

The point of Tom is that If PGPASSWORD is set at user level, say a
.bashrc, then you have the problem for all commands run by this user,
and not only psql, so it is a bit pointless to do that only from the
point of view of psql, because it does not address the root of the
issue.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (4+ messages)

Message-ID: <20190730022943.GD1742@paquier.xyz>
Permalink:  ../20190730022943.GD1742@paquier.xyz/
Also on:    postgresql.org/message-id/20190730022943.GD1742@paquier.xyz

 · 

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-bugs@postgresql.org
  Cc: michael@paquier.xyz, mail@gms.tf
  Subject: Re: BUG #15930: Redact PGPASSWORD environment variable in psql
  In-Reply-To: <20190730022943.GD1742@paquier.xyz>
  References: <20360.1564241009@sss.pgh.pa.us> <20190729183739.GA5321@dell12.lru.li> <20190730022943.GD1742@paquier.xyz>

* 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