Re: [PG19-3 PATCH] Don't ignore passfile

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Paul Ohlhauser <bendix(dot)ohlhauser(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, postgresql(dot)cache976(at)passmail(dot)net, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PG19-3 PATCH] Don't ignore passfile
Date: 2025-09-08 15:40:36
Message-ID: CA+TgmoZDSkY0x-ay16+r8px-Y+0Emg5pAjT_qvRX=Oyf5tXEWw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 8, 2025 at 11:20 AM Paul Ohlhauser
<bendix(dot)ohlhauser(at)gmail(dot)com> wrote:
> And I propose one or more of the following solutions:
> - 1. Make the warning clearer by stating that passfile is ignored (B)
> - 2. Change the warning to be an error (A,B)
> - 3. Allow group permissions (C)
> - 4. Just warn, don't ignore (A,B,C)
>
> Option 4 is the easiest and the patch I submitted but does not seem to be well received
> Option 1 is the bare minimum IMO - it's still not great though
> I'd like to see options 2 & 3 (same behavior as SSH)

I think clarifying the warning is probably an acceptable change as
long as the new wording is equally clear and doesn't add much to the
length of the message. Of course, I don't have the only vote here.

Changing the warning to an error wouldn't bother me a great deal, but
we'd probably need more than just you voting for that alternative to
justify overturning longstanding behavior.

I don't really know what I think about allowing group permissions.
It's reasonable in the sense that we have an option to allow that for
$PGDATA, but OTOH we have no real understanding of Windows permissions
or Linux ACLs or SELinux security constraints, so that idea that we
can force "safe" permissions is a little bit laughable.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Melanie Plageman 2025-09-08 15:44:24 Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access)
Previous Message Melanie Plageman 2025-09-08 15:40:14 Re: Parallel heap vacuum