askpass program for libpq

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: askpass program for libpq
Date: 2013-01-09 13:17:52
Message-ID: 50ED6E00.9070305@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I would like to have something like ssh-askpass for libpq. The main
reason is that I don't want to have passwords in plain text on disk,
even if .pgpass is read protected. By getting the password from an
external program, I can integrate libpq tools with the host system's key
chain or wallet thing, which stores passwords encrypted.

I'm thinking about adding a new connection option "askpass" with
environment variable PGASKPASS. One thing I haven't quite figured out
is how to make this ask for passwords only if needed. Maybe it needs
two connection options, one to say which program to use and one to say
whether to use it.

Ideas?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2013-01-09 13:23:25 Re: [PATCH 1/2] Provide a common malloc wrappers and palloc et al. emulation for frontend'ish environs
Previous Message Magnus Hagander 2013-01-09 12:54:03 Re: [PATCH 1/2] Provide a common malloc wrappers and palloc et al. emulation for frontend'ish environs