Re: error in trigger creation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: error in trigger creation
Дата
Msg-id 2858912.1713734480@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: error in trigger creation  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: error in trigger creation  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 4/21/24 11:20, yudhi s wrote:
>> So in this case i was wondering if "event trigger" can cause any 
>> additional threat and thus there is no such privilege like "create 
>> trigger" exist in postgres and so it should be treated cautiously?

> An event trigger runs as a superuser and executes a function that in 
> turn can do many things, you do the math on the threat level.

As a trivial example: an event trigger could prevent the legitimate
superuser(s) from doing anything at all in that database, just by
blocking all their commands.  This might not even require malicious
intent, merely faulty coding --- but the opportunity for malicious
intent is staggeringly large.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query multiple schemas
Следующее
От: Ron Johnson
Дата:
Сообщение: CLUSTER vs. VACUUM FULL