Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
Дата
Msg-id f941fa4a-a294-165a-82c4-947d3c8425f6@joeconway.com
обсуждение исходный текст
Ответ на Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 7/21/22 12:46, Tom Lane wrote:
> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>> On Thu, Jul 21, 2022 at 9:28 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> True, but what if the idea is to have *no* superusers?  I seem
>>> to recall people being interested in setups like that.
> 
>> I would expect an initdb option (once this is possible) to specify this
>> desire and we just never set one up in the first place.  It seems
>> impractical to remove one after it already exists.
> 
> There has to be a role that owns the built-in objects.  Robert's point
> is that pretending that that role isn't high-privilege is silly.

My strategy has been to ensure no other roles are members of the 
bootstrap superuser role, and then alter the bootstrap user to be 
NOLOGIN. E.g. in the example here:

https://github.com/pgaudit/set_user/blob/1335cd34ca91b6bd19d5e910cc93c831d1ed0db0/README.md?plain=1#L589

And checked here:

https://github.com/pgaudit/set_user/blob/1335cd34ca91b6bd19d5e910cc93c831d1ed0db0/README.md?plain=1#L612

https://github.com/pgaudit/set_user/blob/1335cd34ca91b6bd19d5e910cc93c831d1ed0db0/README.md?plain=1#L618

-- 
Joe Conway
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: [PATCH] Introduce array_shuffle() and array_sample()
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: warn if GUC set to an invalid shared library