From: Stephen Frost <sfrost@snowman.net>
To: dlo@isam.kiwi
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10250: pgAdmin III 1.16.1 stores unescaped plaintext password
Date: Wed, 7 May 2014 11:44:31 -0400
Message-ID: <20140507154431.GW2556@tamriel.snowman.net> (raw)
In-Reply-To: <20140507043248.1398.38867@wrigleys.postgresql.org>
References: <20140507043248.1398.38867@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Ben,
* dlo@isam.kiwi (dlo@isam.kiwi) wrote:
> When storing credentials for connections into ~/.pgpass the credentials is
> stored in delimited plaintext form. Not only is this practise a security
> risk,
This isn't a bug, it's intentional, and if it goes against your security
requirements then simply don't do it. Storing it in .pgpass encrypted
would require a password to either be provided (in which case, just
don't have the password in the pgpass file..) or for the key to be
stored in plain-text somewhere, which would be the same situation.
Perhaps there is a feature request in here somewhere to have an
ssh-agent like daemon, but there simply hasn't been demand for it.
> but when the credential contains the delimiter (colon) it fails to be
> read back out and app responds with "invalid credentials".
>
> x.x.x.x:5432:*:username:password:with:colons
Per the fine documentation, you need to escape any such usage with a
backslash. Please review:
http://www.postgresql.org/docs/9.3/static/libpq-pgpass.html
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 835B) download
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: sfrost@snowman.net, dlo@isam.kiwi
Subject: Re: BUG #10250: pgAdmin III 1.16.1 stores unescaped plaintext password
In-Reply-To: <20140507154431.GW2556@tamriel.snowman.net>
References: <20140507043248.1398.38867@wrigleys.postgresql.org> <20140507154431.GW2556@tamriel.snowman.net>
* 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