Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Bif-00015O-Nq for pgsql-general@arkaria.postgresql.org; Thu, 19 Oct 2017 14:22:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e5Bif-0003zB-Ak for pgsql-general@arkaria.postgresql.org; Thu, 19 Oct 2017 14:22:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e5BgC-0005g9-GP for pgsql-general@postgresql.org; Thu, 19 Oct 2017 14:20:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e5Bg9-0002l5-KH for pgsql-general@postgresql.org; Thu, 19 Oct 2017 14:20:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9JEK4Nj030757; Thu, 19 Oct 2017 10:20:04 -0400 From: Tom Lane To: "Daniel Verite" cc: "Desidero" , pgsql-general@postgresql.org Subject: Re: pgpass file type restrictions In-reply-to: <7a53b770-0e6c-4cb5-903d-180ff12d53e2@manitou-mail.org> References: <7a53b770-0e6c-4cb5-903d-180ff12d53e2@manitou-mail.org> Comments: In-reply-to "Daniel Verite" message dated "Thu, 19 Oct 2017 15:56:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30755.1508422804.1@sss.pgh.pa.us> Date: Thu, 19 Oct 2017 10:20:04 -0400 Message-ID: <30756.1508422804@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org "Daniel Verite" 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