pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Dominique Devienne <ddevienne@gmail.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: How to fork pg_dump or psql w/o leaking secrets?
Date: Fri, 22 Sep 2023 14:56:11 -0400
Message-ID: <1065798.1695408971@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYqituJYWixouf-h1ipQa1ZGaRTDffQHOGyYZ3WwpWaQg@mail.gmail.com>
References: <CAFCRh-_wXVEVx9y3OUama5Qjp7_-LuUq-pkhyo7=o1iJwrq1zQ@mail.gmail.com>
	<CAKoxK+4_p58GGttVZL+wFsR1CwvtN461sAi9gs1s5q4HVMPgKQ@mail.gmail.com>
	<CAFCRh--AqKGPZ5uYy=YFAM2tr3qFXRkcVigihy+OYKYNwS+UNw@mail.gmail.com>
	<CAKoxK+6po5JepWMj9HwRT4VTw3stdKbFe14YEBPsHWT6k4d3Sw@mail.gmail.com>
	<CAFCRh-_84B07T-yKpQm9vgGAKuJ+pQxCfrAE8PbUiGM1OWGdEQ@mail.gmail.com>
	<CAKFQuwYqituJYWixouf-h1ipQa1ZGaRTDffQHOGyYZ3WwpWaQg@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Once you have the password you should utilize the PGPASSWORD environment
> variable to get it passed to psql.  It doesn’t matter in the least how you
> obtained that password in the first place.

Keep in mind that on many flavors of Unix, a process's environment
variables can readily be inspected by other processes.  You should
check your platform carefully before assuming that PGPASSWORD is
a safe way to pass down a secret.

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <1065798.1695408971@sss.pgh.pa.us>
Permalink:  ../1065798.1695408971@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1065798.1695408971@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, david.g.johnston@gmail.com, ddevienne@gmail.com, fluca1978@gmail.com
  Subject: Re: How to fork pg_dump or psql w/o leaking secrets?
  In-Reply-To: <1065798.1695408971@sss.pgh.pa.us>
  References: <CAFCRh-_wXVEVx9y3OUama5Qjp7_-LuUq-pkhyo7=o1iJwrq1zQ@mail.gmail.com> <CAKoxK+4_p58GGttVZL+wFsR1CwvtN461sAi9gs1s5q4HVMPgKQ@mail.gmail.com> <CAFCRh--AqKGPZ5uYy=YFAM2tr3qFXRkcVigihy+OYKYNwS+UNw@mail.gmail.com> <CAKoxK+6po5JepWMj9HwRT4VTw3stdKbFe14YEBPsHWT6k4d3Sw@mail.gmail.com> <CAFCRh-_84B07T-yKpQm9vgGAKuJ+pQxCfrAE8PbUiGM1OWGdEQ@mail.gmail.com> <CAKFQuwYqituJYWixouf-h1ipQa1ZGaRTDffQHOGyYZ3WwpWaQg@mail.gmail.com> <1065798.1695408971@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