Re: Possibility to disable `ALTER SYSTEM`
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Robert Haas <robertmhaas@gmail.com>, Martín Marqués <martin.marques@gmail.com>, Isaac Morland <isaac.morland@gmail.com>, Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>, pgsql-hackers@postgresql.org
Date: 2024-01-31T04:25:28Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add allow_alter_system GUC.
- d3ae2a24f265 17.0 landed
-
Rename COMPAT_OPTIONS_CLIENT to COMPAT_OPTIONS_OTHER.
- de7e96bd0fc6 17.0 landed
-
Remove support for version-0 calling conventions.
- 5ded4bd21403 10.0 cited
Magnus Hagander <magnus@hagander.net> writes: > On Tue, Jan 30, 2024 at 10:48 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> I was imagining using selinux and/or sepgsql to directly prevent >> writing postgresql.auto.conf from the Postgres account. > Wouldn't a simple "chattr +i postgresql.auto.conf" work? Hmm, I'm not too familiar with that file attribute, but it looks like it'd work (on platforms that support it). My larger point here is that trying to enforce restrictions on superusers *within* Postgres is simply not a good plan, for largely the same reasons that Robert questioned making the GUC mechanism police itself. It needs to be done outside, either at the filesystem level or via some other kernel-level security system. regards, tom lane