Re: Role Self-Administration
От | Mark Dilger |
---|---|
Тема | Re: Role Self-Administration |
Дата | |
Msg-id | 7BBD5339-46DA-411D-A8ED-80303DF8D9BA@enterprisedb.com обсуждение исходный текст |
Ответ на | Re: Role Self-Administration (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: Role Self-Administration
Re: Role Self-Administration |
Список | pgsql-hackers |
> On Oct 5, 2021, at 9:23 AM, Robert Haas <robertmhaas@gmail.com> 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 interms 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 beable 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 по дате отправления: