Re: BUG #16486: Prompted password is ignored when password specified in connection string

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #16486: Prompted password is ignored when password specified in connection string
Дата
Msg-id 20200901203846.GA13613@momjian.us
обсуждение исходный текст
Ответ на Re: BUG #16486: Prompted password is ignored when password specified in connection string  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #16486: Prompted password is ignored when password specified in connection string  (Oleksandr Shulgin <oleksandr.shulgin@zalando.de>)
Re: BUG #16486: Prompted password is ignored when password specified in connection string  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Mon, Jun  8, 2020 at 09:59:18PM -0400, Tom Lane wrote:
> I wrote:
> > Hmm ... I had thought that the docs explained -W in more or less the same
> > way I did above, but I see that (at least on the psql page) things are
> > indeed pretty vague.  I'll see about improving that.
> 
> Concretely, it looks like we need edits as attached for psql, and
> likewise for all our other programs with similar options.
> 
> The thing that was really missing here IMO is the specification that a
> conninfo string overrides other command-line parameters.  It's somewhat
> debatable whether a -W prompt is a "command line parameter", but it
> acts that way for this purpose.  In any case, I'm disinclined to document
> that specific interaction, because it would amount to blessing a pretty
> damfool practice, which is to make your password visible on the program's
> command line.  (I wonder whether section 33.1.2 ought to specifically
> caution against putting passwords into command-line conninfo strings.)

I used a later version of Tom's patch to add documentation of how
connection strings can override command-line options, plus it has the
password description improvements.

I would like to apply this to all supported versions.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee


Вложения

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16604: pg_dump with --jobs breaks SSL connections
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: BUG #16557: getProcedureColumns() function returns columns, when there is no existing Stored Procedure in the DB