From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Marko Tiikkaja <marko(at)joh(dot)to> |
Cc: | Joel Jacobson <joel(at)compiler(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: security_definer_search_path GUC |
Date: | 2021-06-03 16:03:09 |
Message-ID: | CAFj8pRBJe=EFfqzcwFkR_9urHxL-wLy2OgjA6n3W1HWzs0NEfQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
čt 3. 6. 2021 v 17:54 odesílatel Marko Tiikkaja <marko(at)joh(dot)to> napsal:
> On Thu, Jun 3, 2021 at 9:14 AM Joel Jacobson <joel(at)compiler(dot)org> wrote:
>
>> On Thu, Jun 3, 2021, at 00:55, Marko Tiikkaja wrote:
>>
>> They still show up everywhere when looking at "public". So this is only
>> slightly better, and a maintenance burden.
>>
>>
>> Good point. I find this annoying as well sometimes.
>>
>> It's easy to get a list of all objects for an extension, via \dx+
>>
>> But it's hard to see what objects in a schema, that are provided by
>> different extensions, via e.g. \df public.*
>>
>> What about adding a new "Extension" column next to "Schema" to the
>> relevant commands, such as \df?
>>
>
> That's just one part of it. The other part of my original proposal was to
> avoid having to SET search_path for all SECURITY DEFINER functions. I
> still think either being able to lock search_path or the separate prosecdef
> search_path is the best option here.
>
I agree so some possibility of locking search_path or possibility to
control who and when can change it can increase security. This should be a
core feature. It's maybe more generic issue - same functionality can be
required for work_mem setting, maybe max_paralel_workers_per_gather, and
other GUC
Regards
Pavel
>
>
> .m
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2021-06-03 16:04:48 | Re: Move pg_attribute.attcompression to earlier in struct for reduced size? |
Previous Message | Marko Tiikkaja | 2021-06-03 15:54:42 | Re: security_definer_search_path GUC |