if (!superuser) checks - Mailing list pgsql-hackers

From Stephen Frost
Subject if (!superuser) checks
Date
Msg-id 20160407194524.GL10850@tamriel.snowman.net
Whole thread Raw
Responses Re: if (!superuser) checks  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
All, Andres,

Now that we have begun removing the if (!superuser) checks and instead
relying on the GRANT system to determine who is allowed to call certain
functions, it's time to consider functions beyond the initial set.

In particular, the pg_logical_* functions have superuser checks and
those checks also allow roles who have the replication role attribute.
That isn't something we can represent with the GRANT system currently.

The main question is if it really makes sense for the replication role
attribute to control access to these functions.  Personally, I'd rather
restrict replication roles (who are not also superusers) from connecting
to PG at all.

Andres, I figured you would have the best idea about how impactful such
a change would be on users of those functions.

Thoughts?

Thanks!

Stephen

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [patch] Proposal for \crosstabview in psql
Next
From: Stephen Frost
Date:
Subject: Re: Default Roles