Re: Fix search_path for all maintenance commands

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: Fix search_path for all maintenance commands
Дата
Msg-id
20230609045556.GA53384@nathanxps13
Ответ на
Список
Дерево обсуждения
Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Gurjeet Singh <gurjeet@singh.im>
Re: Fix search_path for all maintenance commands "David G. Johnston" <david.g.johnston@gmail.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Gurjeet Singh <gurjeet@singh.im>
Re: Fix search_path for all maintenance commands "David G. Johnston" <david.g.johnston@gmail.com>
Re: Fix search_path for all maintenance commands Noah Misch <noah@leadboat.com>
Re: Fix search_path for all maintenance commands Nathan Bossart <nathandbossart@gmail.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Noah Misch <noah@leadboat.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Shubham Khanna <khannashubham1197@gmail.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Nathan Bossart <nathandbossart@gmail.com>
Re: Fix search_path for all maintenance commands Isaac Morland <isaac.morland@gmail.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Isaac Morland <isaac.morland@gmail.com>
Re: Fix search_path for all maintenance commands Tom Lane <tgl@sss.pgh.pa.us>
Re: Fix search_path for all maintenance commands Isaac Morland <isaac.morland@gmail.com>
Re: Fix search_path for all maintenance commands Isaac Morland <isaac.morland@gmail.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Greg Stark <stark@mit.edu>
Re: Fix search_path for all maintenance commands Nathan Bossart <nathandbossart@gmail.com>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
Re: Fix search_path for all maintenance commands Gurjeet Singh <gurjeet@singh.im>
Re: Fix search_path for all maintenance commands Jeff Davis <pgsql@j-davis.com>
On Thu, Jun 08, 2023 at 06:08:08PM -0400, Greg Stark wrote:
> I guess that's pretty narrow and a reasonable thing to desupport.
> Users could just mark those functions with search_path or schema
> qualify the object references in them. Perhaps we should also be
> picking up cases like that sooner so users realize they've created a
> footgun for themselves?

I'm inclined to agree that this is reasonable to desupport.  Relying on the
search_path for the cases Greg describes already seems rather fragile, so
I'm skeptical that forcing a safe one for maintenance commands would make
things significantly worse.  At least, it sounds like the right trade-off
based on Jeff's note about privilege escalation risks.

I bet we could skip forcing the search_path for maintenance commands run as
the table owner, but such a discrepancy seems likely to cause far more
confusion than anything else.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Drouvot, Bertrand
Дата:
От: Masahiko Sawada
Дата:
FAQ