Re: Allowing to create LEAKPROOF functions to non-superuser
От
Andres Freund
Тема
Re: Allowing to create LEAKPROOF functions to non-superuser
Дата
Msg-id
20210412213527.rifnkyb7efdyhxjp@alap3.anarazel.de
Ответ на
Список
Дерево обсуждения
Allowing to create LEAKPROOF functions to non-superuser Andrey Borodin <x4mmm@yandex-team.ru>
Re: Allowing to create LEAKPROOF functions to non-superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Allowing to create LEAKPROOF functions to non-superuser Andres Freund <andres@anarazel.de>
Re: Allowing to create LEAKPROOF functions to non-superuser Andrey Borodin <x4mmm@yandex-team.ru>
Re: Allowing to create LEAKPROOF functions to non-superuser Andres Freund <andres@anarazel.de>
Re: Allowing to create LEAKPROOF functions to non-superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Allowing to create LEAKPROOF functions to non-superuser Andres Freund <andres@anarazel.de>
Re: Allowing to create LEAKPROOF functions to non-superuser Noah Misch <noah@leadboat.com>
Re: Allowing to create LEAKPROOF functions to non-superuser Robert Haas <robertmhaas@gmail.com>
Re: Allowing to create LEAKPROOF functions to non-superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Allowing to create LEAKPROOF functions to non-superuser Robert Haas <robertmhaas@gmail.com>
Re: Allowing to create LEAKPROOF functions to non-superuser Stephen Frost <sfrost@snowman.net>
Re: Allowing to create LEAKPROOF functions to non-superuser Noah Misch <noah@leadboat.com>
Re: Allowing to create LEAKPROOF functions to non-superuser Stephen Frost <sfrost@snowman.net>
Re: Allowing to create LEAKPROOF functions to non-superuser Noah Misch <noah@leadboat.com>
Re: Allowing to create LEAKPROOF functions to non-superuser Andrey Borodin <x4mmm@yandex-team.ru>
Re: Allowing to create LEAKPROOF functions to non-superuser Stephen Frost <sfrost@snowman.net>
Re: Allowing to create LEAKPROOF functions to non-superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Allowing to create LEAKPROOF functions to non-superuser Andrey Borodin <x4mmm@yandex-team.ru>
Re: Allowing to create LEAKPROOF functions to non-superuser Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: Allowing to create LEAKPROOF functions to non-superuser Andres Freund <andres@anarazel.de>
Re: Allowing to create LEAKPROOF functions to non-superuser Andrey Borodin <x4mmm@yandex-team.ru>
Hi, On 2021-04-12 17:14:20 -0400, Tom Lane wrote: > I doubt that falsely labeling a function LEAKPROOF can get you more > than the ability to read data you're not supposed to be able to read > ... but that ability is then available to all users, or at least all > users who can execute the function in question. So it definitely is a > fairly serious security hazard, and one that's not well modeled by > role labels. If you give somebody e.g. pg_read_all_data privileges, > you don't expect that that means they can give it to other users. A user with BYPASSRLS can create public security definer functions returning data. If the concern is a BYPASSRLS user intentionally exposing data, then there's not a meaningful increase to allow defining LEAKPROOF functions. To me the more relevant concern is that it's hard to determine LEAKPROOF-ness and that many use-cases for BYPASSRLS do not require the target to have the technical chops to determine if a function actually is leakproof. But that seems more an argument for providing a separate control over allowing to specify LEAKPROOF than against separating it from superuser. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: