Re: Role Self-Administration

Поиск
Список
Период
Сортировка
Искать
От
Mark Dilger
Тема
Re: Role Self-Administration
Дата
Msg-id
7BBD5339-46DA-411D-A8ED-80303DF8D9BA@enterprisedb.com
Ответ на
Список
Дерево обсуждения
Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Noah Misch <noah@leadboat.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Vik Fearing <vik@postgresfriends.org>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Vik Fearing <vik@postgresfriends.org>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>


> On Oct 5, 2021, at 9:23 AM, Robert Haas  wrote:
> 
>> - Disallow roles from being able to REVOKE role membership that they
>>  didn't GRANT in the first place.
> 
> I think that's not quite the right test. For example, if alice and bob
> are superusers and alice grants pg_monitor to doug, bob should be able
> to revoke that grant even though he is not alice.

Additionally, role "alice" might not exist anymore, which would leave the privilege irrevocable.  It's helpful to think in terms of role ownership rather than role creation:

superuser
  +---> alice
    +---> charlie
      +---> diane
  +---> bob

It makes sense that alice can take ownership of diane and drop charlie, but not that bob can do so.  Nor should charlie be able to transfer ownership of diane to alice.  Nor should charlie be able to drop himself.

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
От: Amul Sul
Дата:
FAQ