Re: Fix search_path for all maintenance commands
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Noah Misch <noah@leadboat.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, "David G. Johnston"
<david.g.johnston@gmail.com>, Gurjeet Singh <gurjeet@singh.im>,
pgsql-hackers@postgresql.org, Robert Haas <robertmhaas@gmail.com>, Greg
Stark <stark@mit.edu>, Tom Lane <tgl@sss.pgh.pa.us>
Date: 2023-07-22T18:52:15Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix search_path to a safe value during maintenance operations.
- 2af07e2f749a 17.0 landed
- 05e173735171 16.0 landed
-
Make relation-enumerating operations be security-restricted operations.
- a117cebd638d 15.0 cited
On Sat, 2023-07-22 at 07:04 -0700, Noah Misch wrote: > Commit a117ceb added that, and it added some test cases that behaved > differently without that. Thank you. The reasoning there seems to apply to search_path restriction as well, so I will leave it as-is. I'll wait a few more days for comment since I made some changes (also it's the weekend), but I plan to commit something like the latest version soon. I might adjust the CREATE MATERIALIZED VIEW changes to be more minimal, but that path is not important for security (see pre-existing comment) so it's probably fine either way. Regards, Jeff Davis