Access control on the read replica

From: Мазлов Владимир <vlmazlov(at)yandex(dot)ru>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Access control on the read replica
Date: 2020-04-21 12:43:25
Message-ID: 78061587470870@mail.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<div>Hi,</div><div> </div><div>What I've been trying to do: write a web app that, upon receiving a request, automatically gets a DB connection with <strong>only </strong>the permissions it needs.</div><div> </div><div>There are a number of solutions to this problem: you could use triggers/view, you could use security definer functions to grant/revoke permissions for a pool of roles. None of the solutions I've been able to come up with work on connections to the standby.</div><div> </div><div>Does anything I've stated above strike you as obviously wrong? If not, do you perhaps have any ideas on how this problem could be tackled?</div><div> </div><div>I would very much appreciate any ideas.</div><div> </div><div>Cheers,</div><div>Vladimir</div>

Attachment Content-Type Size
unknown_filename text/html 761 bytes

Browse pgsql-general by date

  From Date Subject
Next Message Мазлов Владимир 2020-04-21 12:47:46 Access control on the read replica
Previous Message pinker 2020-04-21 10:09:38 1GB of maintenance work mem