pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Users, Roles and Connection Pooling
Date: Wed, 2 Oct 2019 17:49:51 -0600
Message-ID: <e1709525-53cf-499d-da9b-693fcbb1997d@gmail.com> (raw)
In-Reply-To: <20191002232708.uhg6kqz7ftob7l4n@raf.org>
References: <CAPeDGQ5XeuHKmp5LPcJ2AXiuUiS8+3n+xvsQoordz7GnHEenfQ@mail.gmail.com>
	<0503910ff326d635e681849565de20db63c63eca.camel@cybertec.at>
	<20191002232708.uhg6kqz7ftob7l4n@raf.org>


On 10/2/19 5:27 PM, raf wrote:
>>
> I can't help with questions about scale but I like to give roles/users
> almost no permissions at all. i.e. They can't select, insert, update
> or delete anything. All they have permission to do is to execute stored
> functions that were installed by a role with the necessary permissions
> and they are security defining functions so the permissions of the role
> that created them apply when the functions are called. This means that
> there will never be any successful SQL injection, even if the application
> code is buggy, so it's more important for web applications, but I apply
> this method to internal systems as well. This approach might help with
> scaling because fewer users might be needed but I'm not sure.
>
> cheers,
> raf
>
>
How easy is it to introduce an new function call all the way up to the 
app user?  Does this approach preclude making use of any query 
generation techniques available?





view thread (10+ messages)  latest in thread

Message-ID: <e1709525-53cf-499d-da9b-693fcbb1997d@gmail.com>
Permalink:  ../e1709525-53cf-499d-da9b-693fcbb1997d@gmail.com/
Also on:    postgresql.org/message-id/e1709525-53cf-499d-da9b-693fcbb1997d@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
  Subject: Re: Users, Roles and Connection Pooling
  In-Reply-To: <e1709525-53cf-499d-da9b-693fcbb1997d@gmail.com>
  References: <CAPeDGQ5XeuHKmp5LPcJ2AXiuUiS8+3n+xvsQoordz7GnHEenfQ@mail.gmail.com> <0503910ff326d635e681849565de20db63c63eca.camel@cybertec.at> <20191002232708.uhg6kqz7ftob7l4n@raf.org> <e1709525-53cf-499d-da9b-693fcbb1997d@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