pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Tim Clarke <tim.clarke@minerva.info>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Web users as database users?
Date: Fri, 20 Sep 2019 07:01:06 -0600
Message-ID: <28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com> (raw)
In-Reply-To: <f5dbb11b-c041-cea6-766f-63c223c526f2@minerva.info>
References: <CAPjKuyVzvojzntx2MNMWEvuP3--z_8ZzDbdYrbvNmXkqUeLfhQ@mail.gmail.com>
	<f5dbb11b-c041-cea6-766f-63c223c526f2@minerva.info>



> On Sep 20, 2019, at 6:15 AM, Tim Clarke <tim.clarke@minerva.info> wrote:
> 
>> On 20/09/2019 12:50, David Gallagher wrote:
>> Hi - I’m working on a database that will be accessed via a web app.
>> I’m used to a setup where there is one account/role that the app would
>> use to access the database, but in my current scenario I’m interested
>> in row level security and auditing enforced by the database. In this
>> scenario, would it make sense to have a user account on the database
>> to mirror the user account from the web app? Is that an unusual practice?
> 
> 
> Not at all, we're doing it
> 
> 
> Tim Clarke
> 
But you likely want a many-to-one mapping of actual user to permission group




view thread (9+ messages)  latest in thread

Message-ID: <28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com>
Permalink:  ../28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com/
Also on:    postgresql.org/message-id/28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, tim.clarke@minerva.info
  Subject: Re: Web users as database users?
  In-Reply-To: <28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com>
  References: <CAPjKuyVzvojzntx2MNMWEvuP3--z_8ZzDbdYrbvNmXkqUeLfhQ@mail.gmail.com> <f5dbb11b-c041-cea6-766f-63c223c526f2@minerva.info> <28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox