public inbox for [email protected]
help / color / mirror / Atom feedFrom: Andreas Joseph Krogh <[email protected]>
To: Laurenz Albe <[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 11:33:30 +0200 (CEST)
Message-ID: <VisenaEmail.78.618b04b43c3c1729.18fb965291c@origo-test01.app.internal.visena.net> (raw)
In-Reply-To: <[email protected]>
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]>
På mandag 27. mai 2024 kl. 11:10:10, skrev Laurenz Albe <
[email protected] <mailto:[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".
Yours,
Laurenz Albe
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
Any hints welcome.
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
[email protected] <mailto:[email protected]>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
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: <VisenaEmail.78.618b04b43c3c1729.18fb965291c@origo-test01.app.internal.visena.net>
* 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