Re: WITH CHECK and Column-Level Privileges
От | Stephen Frost |
---|---|
Тема | Re: WITH CHECK and Column-Level Privileges |
Дата | |
Msg-id | 20140929154617.GW16422@tamriel.snowman.net обсуждение исходный текст |
Ответ на | Re: WITH CHECK and Column-Level Privileges (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: WITH CHECK and Column-Level Privileges
|
Список | pgsql-hackers |
* Robert Haas (robertmhaas@gmail.com) wrote: > Well, I think that's an acceptable approach from the point of view of > fixing the security exposure, but it's far from ideal. Good error > messages are important for usability. I can live with this as a > short-term fix, but in the long run I strongly believe we should try > to do better. It certainly wouldn't be hard to add the same check around the WITH OPTION case that's around my proposed solution for the other issues- just check for SELECT rights on the underlying table. Another question is if we could/should limit this to the UPDATE case. With the INSERT case, any columns not provided by the user would be filled out by defaults, which can likely be seen in the catalog, or the functions in the catalog for the defaults or for any triggers might be able to be run by the user executing the INSERT anyway to see what would have been used in the resulting row. I'm not completely convinced there's no risk there though.. Thoughts? Thanks, Stephen
В списке pgsql-hackers по дате отправления: