Re: CASE CLOSED... Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Bryn Llewellyn <bryn(at)yugabyte(dot)com>
Cc: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, hjp-pgsql(at)hjp(dot)at, jeremy(at)musicsmith(dot)net, pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: CASE CLOSED... Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should
Date: 2022-10-31 18:03:30
Message-ID: eb8de88e-6adf-f068-17a7-7a4bc3d28542@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/31/22 10:31 AM, Bryn Llewellyn wrote:
>> adrian(dot)klaver(at)aklaver(dot)com <mailto:adrian(dot)klaver(at)aklaver(dot)com> wrote:
>>
>>> bryn(at)yugabyte(dot)com <mailto:ryn(at)yugabyte(dot)com> wrote:
>>>
>>> This, on the other hand:
>>>
>>> psql -d postgres -U 'clstr$mgr'
>>>
>>> calls for "local", "peer" authentication as so it does NOT require a
>>> password. That would be enough for me. But, naturally, and now that
>>> it's working. I prefer the Peter-inspired bare "psql".
>>
>> Personally, I use longer forms like above as a form of explicit is
>> better then implicit. There are no end of posts to this list where the
>> issue was someone or something had changed a 'hidden' value in a env
>> variable or conf file could not connect or connected to wrong cluster
>> and/or database.
>

> This thinking extends, of course, to:
>
> psql -d postgres -U 'postgres'
>
> having logged in as the O/S user "postgres". (And here, I can simply
> "set role" to "clstr$mgr" when I need to without exiting one session,
> logging in as a different O/S user, and then starting a new session.)

This implies that the only auth method you will be using is peer, is
that correct?

This also means that the only connections to the cluster will be done as
local, is that correct?

>
> But when I'm working interactively, I might well allow myself to type
> the bare minimum, on the fly, that gets the result.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2022-10-31 22:02:44 Re: CASE CLOSED... Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should
Previous Message Bryn Llewellyn 2022-10-31 17:31:54 Re: CASE CLOSED... Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should