Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2022-07-26T18:40:49Z
Lists: pgsql-hackers
On Thu, Jul 21, 2022 at 1:27 PM Nathan Bossart <nathandbossart@gmail.com> wrote: > 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. Reaction to this patch seems tentatively positive so far, so I have committed it. Maybe someone will still show up to complain ... but I think it's a good change, so I hope not. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Fix brain fade in e530be2c5ce77475d56ccf8f4e0c4872b666ad5f.
- 8bb3ad462f8d 16.0 landed
-
Do not allow removal of superuser privileges from bootstrap user.
- e530be2c5ce7 16.0 landed