askpass program for libpq

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема askpass program for libpq
Дата
Msg-id 50ED6E00.9070305@gmx.net
обсуждение исходный текст
Ответы Re: askpass program for libpq  (Magnus Hagander <magnus@hagander.net>)
Re: askpass program for libpq  (Daniel Farina <daniel@heroku.com>)
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [PATCH 1/2] Provide a common malloc wrappers and palloc et al. emulation for frontend'ish environs
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH 1/2] Provide a common malloc wrappers and palloc et al. emulation for frontend'ish environs