pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Noinheritance with superuser
2+ messages / 2 participants
[nested] [flat]

* Noinheritance with superuser
@ 2021-06-04 03:13 saket bansal <saket.tcs@gmail.com>
  2021-06-04 03:59 ` Re: Noinheritance with superuser Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: saket bansal @ 2021-06-04 03:13 UTC (permalink / raw)
  To: PostgreSQL General <pgsql-general@lists.postgresql.org>

I have an RDS instance with the below configuration.

create role role1 login noinheritance;
grant rds_superuser to rdsdba;
grant rdsdba to role1

In this case role1 is able to do all administrative operations, without the
need of switching to rdsdba.
Is this expected?
I do not find any document which says that inheritance does not work with
roles which have superuser role granted to it. Note that rdsdba is not a
superuser in itself, but only has a role which is superuser.

-- 

Thanks in advance.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Noinheritance with superuser
  2021-06-04 03:13 Noinheritance with superuser saket bansal <saket.tcs@gmail.com>
@ 2021-06-04 03:59 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2021-06-04 03:59 UTC (permalink / raw)
  To: saket bansal <saket.tcs@gmail.com>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>

saket bansal <saket.tcs@gmail.com> writes:
> I have an RDS instance with the below configuration.
> create role role1 login noinheritance;
> grant rds_superuser to rdsdba;
> grant rdsdba to role1

> In this case role1 is able to do all administrative operations, without the
> need of switching to rdsdba.
> Is this expected?

rds_superuser is not a thing that exists in community Postgres.
I'd suggest taking this question up with the Amazon RDS folk.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-06-04 03:59 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 03:13 Noinheritance with superuser saket bansal <saket.tcs@gmail.com>
2021-06-04 03:59 ` Tom Lane <tgl@sss.pgh.pa.us>

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