Re: allowing for control over SET ROLE
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Nathan Bossart <nathandbossart@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2022-11-15T17:07:06Z
Lists: pgsql-hackers
Bump. Discussion has trailed off here, but I still don't see that we have a better way forward here than what I proposed on September 30th. Two people have commented. Nathan said that he wasn't sure this was best (neither am I) but that he didn't have a better idea either (neither do I). Stephen proposed decomposing ADMIN OPTION, which is not my preference, but even if it turns out that we want to pursue that approach, I do not think it would make sense to bundle that into this patch, because there isn't enough overlap between that change and this change to justify that treatment. If anyone else wants to comment, or if either of those people want to comment further, please speak up soon. Otherwise, I am going to press forward with committing this. If we do not, we will continue to have no way of restricting of SET ROLE, and we will continue to have no way of preventing the creation of objects owned by predefined roles by users who have been granted those roles. As far as I am aware, no one is opposed to those goals, and in fact I think everyone who has commented thinks that it would be good to do something. If a better idea than what I've implemented comes along, I'm happy to defer to it, but I think this is one of those cases in which there probably isn't any totally satisfying solution, and yet doing nothing is not a superior alternative. Thanks, -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
More documentation update for GRANT ... WITH SET OPTION.
- 3cdf7502f85c 16.0 landed
-
Restrict the privileges of CREATEROLE users.
- cf5eb37c5ee0 16.0 cited
-
Add support for GRANT SET in psql tab completion
- 9d0cf574920f 16.0 landed
-
Add a SET option to the GRANT command.
- 3d14e171e9e2 16.0 landed
-
Allow grant-level control of role inheritance behavior.
- e3ce2de09d81 16.0 cited