Re: Restricting user to see schema structure - Mailing list pgsql-general

From David G. Johnston
Subject Re: Restricting user to see schema structure
Date
Msg-id CAKFQuwYmBFKrfTstgQPSRG-gAt-2Ne=vdQOfmEUL2Sy8x5S6Cg@mail.gmail.com
Whole thread Raw
In response to Re: Restricting user to see schema structure  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Restricting user to see schema structure
List pgsql-general
On Thu, May 12, 2022 at 11:44 AM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 5/12/22 11:29, Bryn Llewellyn wrote:

> I've prototyped this scheme. It seems to work as designed. A client that connects with psql (or any other tool) can list the API functions and whatever \df and \sf show. (notice that \d will reveal nothing.)But doing this reveals only the names of the functions that are called (which will be identical to the jacket names—so no risk here) and the name(s) of the schema(s) where they live (so a minor theoretical risk here).
>
> Full disclosure: I've never done this in anger.

Try select * from pg_class or select * from pg_attribute or any of the
other system catalogs.


Which is exactly what most GUI applications that provide object browsing and viewing are going to use.

David J.

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Restricting user to see schema structure
Next
From: Bryn Llewellyn
Date:
Subject: Re: Restricting user to see schema structure