Re: [PATCH] pg_autovacuum commandline password hiding.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] pg_autovacuum commandline password hiding.
Дата
Msg-id 20752.1116946936@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] pg_autovacuum commandline password hiding.  ("Dave Page" <dpage@vale-housing.co.uk>)
Ответы Re: [PATCH] pg_autovacuum commandline password hiding.
Re: [PATCH] pg_autovacuum commandline password hiding.
Список pgsql-patches
"Dave Page" <dpage@vale-housing.co.uk> writes:
>> Which is exactly why we don't (and won't) provide such a switch.

> Err, yes we do:

Um, sorry, I totally misread Ian's patch as a proposal that we add a
password switch (I hate unidiffs ;-)).

I would argue actually that this switch is a horrible idea and we
must take it out entirely.  The method Ian proposes for hiding the
password after reading it is certainly not portable in the slightest,
and even if we could make it work on all platforms (which we can't)
I don't think it would be good enough, because there would still be
a window where the superuser password was exposed to view before
we could wipe it out.

psql, pg_dump, etc allow password specification from stdin and from
.pgpass, never on the command line.  There is a reason why they are all
designed like that.  pg_autovacuum hasn't been studied carefully enough
I guess, because we should never have let a security hole like this get
by us.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: plperl strict mode
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCH] pg_autovacuum commandline password hiding.