pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Charles Clavadetscher <clavadetscher@swisspug.org>
To: bejita0409@yahoo.co.jp
To: pgsql-admin@lists.postgresql.org
To: pgsql-general@lists.postgresql.org
Subject: RE: How to revoke privileged from PostgreSQL's superuser
Date: Mon, 6 Aug 2018 12:33:02 +0200
Message-ID: <04b601d42d70$e1f9ab50$a5ed01f0$@swisspug.org> (raw)
In-Reply-To: <913907.28546.qm@web103014.mail.kks.yahoo.co.jp>
References: <913907.28546.qm@web103014.mail.kks.yahoo.co.jp>

Hello

 

From: bejita0409@yahoo.co.jp [mailto:bejita0409@yahoo.co.jp] 
Sent: Montag, 6. August 2018 11:49
To: pgsql-admin@lists.postgresql.org; pgsql-general@lists.postgresql.org
Subject: How to revoke privileged from PostgreSQL's superuser

 

Hello,

 

I am a newbie DBA.

 

I have a request for revoking the access to user's data from DBA-user.

I think the request is right because users should be the only ones can access their data.

But DBA-user also need full access to the other data? It means that DBA-user also needs to be a superuser.

 

So I conclude the request that how to revoke privileged from superuser in postgres.

 

As my knowledge, the superuser in PostgreSQL bypasses all the permission check.

So that, there is no way to do it in PostgreSQL, is that right?

 

Yes, superuser have access to everything. The main question is why should a superuser be restricted in her access to an object?

I think that this is more a question of designing your user and groups in a clean way.

 

In theory you could restrict access using a before trigger, but this is not a good idea and is quite expensive.

You could also use a policy for the superuser with the clause using(false), but this also is not really a good idea and may become
very confusing.

 

In either way, this would not be a good solution.

 

Maybe, if you clarify better what is your purpose, there might be more useful answers and approaches.

 

Regards

Charles

 

Is there some DBAs are faced with this before?

 

 

Thanks,

--

bejita

view thread (40+ messages)  latest in thread

Message-ID: <04b601d42d70$e1f9ab50$a5ed01f0$@swisspug.org>
Permalink:  ../04b601d42d70$e1f9ab50$a5ed01f0$@swisspug.org/
Also on:    postgresql.org/message-id/04b601d42d70$e1f9ab50$a5ed01f0$@swisspug.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: clavadetscher@swisspug.org, bejita0409@yahoo.co.jp, pgsql-admin@lists.postgresql.org, pgsql-general@lists.postgresql.org
  Subject: RE: How to revoke privileged from PostgreSQL's superuser
  In-Reply-To: <04b601d42d70$e1f9ab50$a5ed01f0$@swisspug.org>

* 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