Prevent users from executing pg_dump against tables

Поиск
Список
Период
Сортировка
От RAJAMOHAN
Тема Prevent users from executing pg_dump against tables
Дата
Msg-id CAFzdntvuzVvyj48V-bmo09ui8THtkMY-h5xaFqBOh5e_16nc3g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Prevent users from executing pg_dump against tables  (Kashif Zeeshan <kashi.zeeshan@gmail.com>)
Re: Prevent users from executing pg_dump against tables  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Prevent users from executing pg_dump against tables  (Ron Johnson <ronljohnsonjr@gmail.com>)
Список pgsql-general
Hello all,

In our production db infrastructure, we have one read_only role which has read privileges against all tables in schema A.

We are planning to grant this role to some developers for viewing the data, but also I want to limit the users from executing statements like copy or using pg_dump. Main reason being I don't want the data to be copied from the database to their local machines.

I tried by implementing triggers, but was not able to figure out a way to restrict the pg_dump and allow only select statements.

Postgresql version - 12
Ec2 based postgres database 

Is there a way to implement this? Please advise.


Thanks & Regards,
Rajamohan.J
Devops Cloud Architect

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

Предыдущее
От: Senor Cervesa
Дата:
Сообщение: Re: Linked directory or explicit reference
Следующее
От: Kashif Zeeshan
Дата:
Сообщение: Re: Prevent users from executing pg_dump against tables