Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsHue-0007i6-SP for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jul 2019 02:30:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hsHtf-0001It-PJ for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jul 2019 02:29:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsHtf-0001GL-EL for pgsql-bugs@lists.postgresql.org; Tue, 30 Jul 2019 02:29:51 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hsHtd-0000mm-4I for pgsql-bugs@lists.postgresql.org; Tue, 30 Jul 2019 02:29:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A13373DC; Mon, 29 Jul 2019 22:29:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 29 Jul 2019 22:29:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=6T56sTCKXBYgwaIgOCtbCv5gmk3 gn5jstq8jFqbcIjY=; b=FdH4+unsCrqibIj1PNDUfIELkRa3RZWJujDZ1eShFrB Z6RdnP0KTbvohJotvygTmh0C4+2DG6AkR9watPKPMv582XPGADFOuMvtnhYH2gvm LTHjkcC4Fn6rJ9lzDueDeamVGA3MGJ2fR9SkZy/HTUE7peekS5dY9YEegcswUtbR ntPDkBCuGYe6uBHgxrXd5NYq5X13M3nHueEi8iNo5hgaD2rGBV2OFW5H9hfemH18 2VzYYIec1fbW9gwXx+DJG22/voL6BhVNNxH8a6X74FTe5EaNC7rGCZv9grxbH8tM fs7wLWyIxXYWleTCxkgOzcVkojAdNvoIbcUCrLL3DBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=6T56sT CKXBYgwaIgOCtbCv5gmk3gn5jstq8jFqbcIjY=; b=wKmMtzvqtFNJrHGUcQBNhG QJbIFsW/xRDriuYbh7I7pLhvyDBgEtq7h0QifxXMjsuaOSN+RdIhEPfDCYdEjpB3 E59kSFyfc8VVlTgPaGlcRS1TybdrjurDVW+z4SESaku/UJfiT6c1ZUHKzXOhIHl6 nYliLMDkM8Il3FOe3o6kEc2n6300IEyZ4Z8RFzeD4ta8aUtPE8/87ndayQW7HjOh r6+lDYerZZH9+vB9hK2i/uFWcIFwmkGDsc9CpMYR/0fQ3SQW78alYhNeoKfCadb3 2K03UydSdWKez9YbMp5sQD5PumPRbxmyDbcmONv7FEjCNiGFa891J5O9t0mLtw1A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrledvgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutd dvrddukedtrddukeehnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id D4EAD38008A; Mon, 29 Jul 2019 22:29:45 -0400 (EDT) Date: Tue, 30 Jul 2019 11:29:43 +0900 From: Michael Paquier To: Georg Sauthoff Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15930: Redact PGPASSWORD environment variable in psql Message-ID: <20190730022943.GD1742@paquier.xyz> References: <20360.1564241009@sss.pgh.pa.us> <20190729183739.GA5321@dell12.lru.li> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tVmo9FyGdCe4F4YN" Content-Disposition: inline In-Reply-To: <20190729183739.GA5321@dell12.lru.li> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --tVmo9FyGdCe4F4YN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, >=20 > 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 =2Ebashrc, 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 --tVmo9FyGdCe4F4YN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl0/q5cACgkQnvQgOdby QH1GCw/+KUXrjmiR8ZScUL8HbQXKxEK5K9Ex5aRZNGh5m6vfc12U9h7Q4D+hXg59 FmqKsiUf+6JK7tJXbAl/HzjJ9EvoymYJsz1XUQfMN0kkNvKnMEcIKT7rQFaEGXJi WVKo7BmCpDwyoLHLdeJWVdSehBPRDLbqhtLXyslg/INPwcikJT9biTPW6mFZfXnI sof/X4MIF50omdXnPsqZRKOARrsvfZO5T4GwDi3zisUTRrjBqnxlmhOAlh88Y5vw BWZOgGNhYR0/dw5FO6E0SgbfPrGpgZE4ECSxzs/chaxZImfJAjVgO+tzoW/ohO37 a/gbxHb5od6k2HWvDdSmT6IxJH0QvGe5HD6QsMg5AO0vC42HqiriPht9NTxvh3+r DxfbBpfNMGUcRCu2miDQnylMZcYU7Y6I7yIbzISl+qOI+Hr040lThbsAoomdIfOw dWAGzxztDlq068DdEEKkgUvkdnfSvvLNCFu/sE+FXpo05I+RBMIhObdtpNHtBRRh idiL/vqYM5vveCYTyRevZU9ILxgRMiYkqt/lRdgCscgVMty7Ikr2gRbvJ0JwD9Lv dtdiI20xYoHt6TNgG9lG36bOL1r3guSVh8b8YRQ2hMtoUeh6PlymC9ZXJr0yFO1j lUjdtcDmivNCrMp3//LapJ3eao1O2h/K0CKY1vPSEujywiJ4bro= =hZ+6 -----END PGP SIGNATURE----- --tVmo9FyGdCe4F4YN--