askpass program for libpq - Mailing list pgsql-hackers

From Peter Eisentraut
Subject askpass program for libpq
Date
Msg-id 50ED6E00.9070305@gmx.net
Whole thread Raw
Responses Re: askpass program for libpq
Re: askpass program for libpq
List 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?



pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [PATCH 1/2] Provide a common malloc wrappers and palloc et al. emulation for frontend'ish environs
Next
From: Michael Paquier
Date:
Subject: Re: [PATCH 1/2] Provide a common malloc wrappers and palloc et al. emulation for frontend'ish environs