Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C63E59FB29D for ; Sat, 27 Jan 2007 21:26:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 91435-01 for ; Sat, 27 Jan 2007 21:26:48 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc1-s29.bay0.hotmail.com (bay0-omc1-s29.bay0.hotmail.com [65.54.246.101]) by postgresql.org (Postfix) with ESMTP id 81CD49FB27A for ; Sat, 27 Jan 2007 21:26:48 -0400 (AST) Received: from hotmail.com ([65.54.169.84]) by bay0-omc1-s29.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sat, 27 Jan 2007 17:26:46 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 27 Jan 2007 17:26:46 -0800 Message-ID: Received: from 71.221.112.215 by BAY114-DAV12.phx.gbl with DAV; Sun, 28 Jan 2007 01:26:43 +0000 X-Originating-IP: [71.221.112.215] X-Originating-Email: [michaelmschmidt@msn.com] X-Sender: michaelmschmidt@msn.com From: "Michael Schmidt" To: "PostgreSQL General" Subject: Password issue revisited Date: Sat, 27 Jan 2007 18:26:45 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C74240.B33A21A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: MSN 9 Seal-Send-Time: Sat, 27 Jan 2007 18:26:45 -0700 X-MimeOLE: Produced By MSN MimeOLE V9.50.0034.2000 X-OriginalArrivalTime: 28 Jan 2007 01:26:46.0535 (UTC) FILETIME=[602D7170:01C7427B] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.046 tagged_above=0 required=5 tests=AWL, BAYES_05, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, HTML_30_40, HTML_MESSAGE, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200701/1643 X-Sequence-Number: 108183 This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C74240.B33A21A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Fellow PostgreSQL fans, Last year there was a pretty lengthy discussion (Tom Lane offered a lot = of insights) on this list about deprecating the PGPASSWORD environmental = variable. I understand the security issues here very well. However, up = through version 8.1, it has been easy to use pg_dump and pg_restore from = other applications (PHP, Java, etc.) by capturing the Password prompt on = stderr and sending the password on stdin. No more. Now, this = interaction is done on low-level I/O data streams. Also, it appears = from the documentation that the PGPASSFILE environmental variable has = been deprecated for pg_dump and pg_restore. It appears the only way = these utilities can run from a script or other application is to ensure = that the user specified in the command-line has a .pgpass file. I would like to ask that we return to outputting the Password prompt on = stderr and accepting password input on stdin. Here are the reasons. 1. I don't see that this would pose a major security risk. In fact, in = applications where the user enters the password for each session, the = password need never be saved to disk, which seems a definite security = advantage. Some folks have noted that .pgpass is a plain text file, = hence it could be vulnerable. 2. PostgreSQL has a tradition of respecting generally accepted = standards. The use of high-level input/output is a standard for many = programming languages. =20 3. PostgreSQL has a tradition of cross-platform compatibility. Use of = high-level input/output allows cross-platform applications (e.g., Java) = to interact with PostgreSQL in a straightforward and standardized = fashion. 4. Low level input/output is considerably more difficult and less = reliable for other applications to access and work with. Thanks for considering this matter. Michael Schmidt ------=_NextPart_000_0003_01C74240.B33A21A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Fellow PostgreSQL fans,
Last year there was a pretty lengthy discussion (Tom Lane offered a = lot of=20 insights) on this list about deprecating the PGPASSWORD environmental=20 variable.  I understand the security issues here very well.  = However,=20 up through version 8.1, it has been easy to use pg_dump and pg_restore = from=20 other applications (PHP, Java, etc.) by capturing the Password prompt on = stderr=20 and sending the password on stdin.  No more.  Now, this = interaction is=20 done on low-level I/O data streams.  Also, it appears from the=20 documentation that the PGPASSFILE environmental variable has been = deprecated for=20 pg_dump and pg_restore.  It appears the only way these utilities = can run=20 from a script or other application is to ensure that the user specified = in the=20 command-line has a .pgpass file.
 
I would like to ask that we return to outputting the Password = prompt on=20 stderr and accepting password input on stdin.  Here are the = reasons.
 
1.  I don't see that this would pose a major security = risk.  In=20 fact, in applications where the user enters the password for each = session, the=20 password need never be saved to disk, which seems a definite security=20 advantage.  Some folks have noted that .pgpass is a plain text = file, hence=20 it could be vulnerable.
2.  PostgreSQL has a tradition of respecting generally = accepted=20 standards.  The use of high-level input/output is a standard for = many=20 programming languages. 
3.  PostgreSQL has a tradition of cross-platform=20 compatibility.  Use of high-level input/output allows = cross-platform=20 applications (e.g., Java) to interact with PostgreSQL in a = straightforward and=20 standardized fashion.
4.  Low level input/output is considerably more difficult and = less=20 reliable for other applications to access and work with.
 
Thanks for considering this matter.
 
Michael Schmidt
 
 
------=_NextPart_000_0003_01C74240.B33A21A0--