From: Nathan Bossart <nathandbossart@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
Date: Thu, 21 Jul 2022 10:27:26 -0700
Message-ID: <20220721172726.GA3779763@nathanxps13> (raw)
In-Reply-To: <75372.1658422970@sss.pgh.pa.us>
References: <CA+TgmoZirCwArJms_fgvLBFrC6b=HdxmG7iAhv+kt_=NBA7tEw@mail.gmail.com>
<39752.1658420887@sss.pgh.pa.us>
<CA+TgmoY8rJ3SsE3rJndLqFK1PSVfZe+hV9nM=rs-7nMRZzVVOw@mail.gmail.com>
<75372.1658422970@sss.pgh.pa.us>
On Thu, Jul 21, 2022 at 01:02:50PM -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> ... if
>> we want to regard no-superusers as a supported configuration, we
>> probably need to tighten that up. I think it's kind of hopeless,
>
> Yeah, I agree. At least, I'm uninterested in spending any of my
> own time trying to make that usefully-more-secure than it is today.
> If somebody else is interested enough to do the legwork, we can
> look at what they come up with.
Given the current assumptions the code makes about the bootstrap superuser,
I think it makes sense to disallow removing its superuser attribute (at
least via ALTER ROLE NOSUPERUSER). It seems like there is much work to do
before a no-superuser configuration could be formally supported. If/when
such support materializes, it might be possible to remove the restriction
that Robert is proposing.
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: nathandbossart@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com
Subject: Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
In-Reply-To: <20220721172726.GA3779763@nathanxps13>
References: <CA+TgmoZirCwArJms_fgvLBFrC6b=HdxmG7iAhv+kt_=NBA7tEw@mail.gmail.com> <39752.1658420887@sss.pgh.pa.us> <CA+TgmoY8rJ3SsE3rJndLqFK1PSVfZe+hV9nM=rs-7nMRZzVVOw@mail.gmail.com> <75372.1658422970@sss.pgh.pa.us> <20220721172726.GA3779763@nathanxps13>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox