public inbox for [email protected]
help / color / mirror / Atom feedFrom: Laurenz Albe <[email protected]>
To: Andreas Joseph Krogh <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: prevent users from SELECT-ing from pg_roles/pg_database
Date: Mon, 27 May 2024 12:45:02 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <VisenaEmail.78.618b04b43c3c1729.18fb965291c@origo-test01.app.internal.visena.net>
References: <VisenaEmail.66.54f51e587b38c9cc.18fab4b4eb6@origo-test01.app.internal.visena.net>
<[email protected]>
<VisenaEmail.6d.85d4cf952480c677.18fb8f6e74b@origo-test01.app.internal.visena.net>
<[email protected]>
<VisenaEmail.78.618b04b43c3c1729.18fb965291c@origo-test01.app.internal.visena.net>
On Mon, 2024-05-27 at 11:33 +0200, Andreas Joseph Krogh wrote:
> På mandag 27. mai 2024 kl. 11:10:10, skrev Laurenz Albe <[email protected]>:
> > On Mon, 2024-05-27 at 09:33 +0200, Andreas Joseph Krogh wrote:
> > > I tried:
> > >
> > > REVOKE SELECT ON pg_catalog.pg_database FROM public;
> > >
> > > But that doesn't prevent a normal user from querying pg_database it seems…
> >
> > It works here.
> >
> > Perhaps the "normal" user is a member of "pg_read_all_data".
>
> Don't think so:
> andreak@[local]:5432 16.3 andreak=# REVOKE pg_read_all_data from nisse;
> WARNING: role "nisse" has not been granted membership in role "pg_read_all_data" by role "postgres"
> REVOKE ROLE
Possibilities:
- you are running a modified version of PostgreSQL
- you are actually a superuser, perhaps by inheritance
Yours,
Laurenz Albe
view thread (6+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: prevent users from SELECT-ing from pg_roles/pg_database
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox