pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRolls
4+ messages / 3 participants
[nested] [flat]
* Rolls
@ 2018-02-01 21:22 Andrew Bartley <ambartley@gmail.com>
2018-02-01 21:29 ` Re: Rolls Rob Sargent <robjsargent@gmail.com>
2018-02-01 21:43 ` Re: Rolls David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Bartley @ 2018-02-01 21:22 UTC (permalink / raw)
To: pgsql-general
Hi all,
I am trying to work out a way to create a roll/user that can only execute
one particular function and nothing else. The particular function has been
created with "SECURITY DEFINER".
Regards
Andrew Bartley
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Rolls
2018-02-01 21:22 Rolls Andrew Bartley <ambartley@gmail.com>
@ 2018-02-01 21:29 ` Rob Sargent <robjsargent@gmail.com>
2018-02-01 21:42 ` Re: Rolls Andrew Bartley <ambartley@gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Rob Sargent @ 2018-02-01 21:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 02/01/2018 02:22 PM, Andrew Bartley wrote:
> Hi all,
>
> I am trying to work out a way to create a roll/user that can only
> execute one particular function and nothing else. The particular
> function has been created with "SECURITY DEFINER".
>
> Regards
>
> Andrew Bartley
>
>
And I thought you we offering hot cinnamon buns or some such.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Rolls
2018-02-01 21:22 Rolls Andrew Bartley <ambartley@gmail.com>
2018-02-01 21:29 ` Re: Rolls Rob Sargent <robjsargent@gmail.com>
@ 2018-02-01 21:42 ` Andrew Bartley <ambartley@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Bartley @ 2018-02-01 21:42 UTC (permalink / raw)
To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Sorry Roles....
On Fri, 2 Feb 2018 at 08:29 Rob Sargent <robjsargent@gmail.com> wrote:
>
>
> On 02/01/2018 02:22 PM, Andrew Bartley wrote:
> > Hi all,
> >
> > I am trying to work out a way to create a roll/user that can only
> > execute one particular function and nothing else. The particular
> > function has been created with "SECURITY DEFINER".
> >
> > Regards
> >
> > Andrew Bartley
> >
> >
> And I thought you we offering hot cinnamon buns or some such.
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Rolls
2018-02-01 21:22 Rolls Andrew Bartley <ambartley@gmail.com>
@ 2018-02-01 21:43 ` David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: David G. Johnston @ 2018-02-01 21:43 UTC (permalink / raw)
To: Andrew Bartley <ambartley@gmail.com>; +Cc: pgsql-general
On Thursday, February 1, 2018, Andrew Bartley <ambartley@gmail.com> wrote:
> Hi all,
>
> I am trying to work out a way to create a roll/user that can only execute
> one particular function and nothing else. The particular function has been
> created with "SECURITY DEFINER".
>
Never tried it but "REVOKE PUBLIC FROM role" then "GRANT ... TO role" would
ideally work.
Not simple since every role is a member of PUBLIC from which they all
inherit useful defaults. You can remove those defaults and the already
granted privileges from PUBLIC and then add them back to some super-role
group that everyone but this user belongs too. Then only add the one grant
you desire to this user.
David J.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2018-02-01 21:43 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 21:22 Rolls Andrew Bartley <ambartley@gmail.com>
2018-02-01 21:29 ` Rob Sargent <robjsargent@gmail.com>
2018-02-01 21:42 ` Andrew Bartley <ambartley@gmail.com>
2018-02-01 21:43 ` David G. Johnston <david.g.johnston@gmail.com>
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