pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
To: Neeraj M R <neerajmr12219@gmail.com>
Cc: Tom Lane PostgreSQL <tgl@sss.pgh.pa.us>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Restricting user to see schema structure
Date: Fri, 13 May 2022 08:30:30 -0700
Message-ID: <557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com> (raw)
In-Reply-To: <E92A52A6-ACA5-4CDD-B65A-624A2B335E65@yugabyte.com>
References: <CANV4nBEqKefjxaBJkYrucGDLM41Tr0QehG2WBmoM_D2BXTUrfg@mail.gmail.com>
	<e3b4ecf7-cda2-d47b-cc0e-2b91c3b1c127@aklaver.com>
	<E9B37863-A142-4898-8BD6-85D46CF2CC29@yugabyte.com>
	<048ab2c5-ddf6-d039-3c2a-1828d8c9137b@aklaver.com>
	<CAKFQuwYmBFKrfTstgQPSRG-gAt-2Ne=vdQOfmEUL2Sy8x5S6Cg@mail.gmail.com>
	<A0348203-9026-46A0-B53E-3720EA0401F6@yugabyte.com>
	<569304.1652411286@sss.pgh.pa.us>
	<228E8A44-A504-4E0D-99BD-71B41812FFE2@yugabyte.com>
	<CANV4nBFEVNgXy9nTwXuuRRKAY_t-LMdXFeCKVTCnXx9Z6p+P4g@mail.gmail.com>
	<E92A52A6-ACA5-4CDD-B65A-624A2B335E65@yugabyte.com>

On 5/12/22 22:13, Bryn Llewellyn wrote:
>> /neerajmr12219@gmail.com <mailto:neerajmr12219@gmail.com> wrote:/
>>

> What exactly do you mean by "have created a new user and granted 
> connection access to database"? As I understand it, there's no such 
> thing. I mentioned a simple test in my earlier email that showed that 
> any user (with no schema of its own and no granted privileges) can 
> connect to any database—and see the full metadata account of all its 
> content. I'm teaching myself to live with this.

Besides the REVOKE CONNECT, it is also possible to prevent connections 
to a given database by a particular user by using settings in pg_hba.conf.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (31+ messages)  latest in thread

Message-ID: <557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com>
Permalink:  ../557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com/
Also on:    postgresql.org/message-id/557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, bryn@yugabyte.com, neerajmr12219@gmail.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: Restricting user to see schema structure
  In-Reply-To: <557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com>
  References: <CANV4nBEqKefjxaBJkYrucGDLM41Tr0QehG2WBmoM_D2BXTUrfg@mail.gmail.com> <e3b4ecf7-cda2-d47b-cc0e-2b91c3b1c127@aklaver.com> <E9B37863-A142-4898-8BD6-85D46CF2CC29@yugabyte.com> <048ab2c5-ddf6-d039-3c2a-1828d8c9137b@aklaver.com> <CAKFQuwYmBFKrfTstgQPSRG-gAt-2Ne=vdQOfmEUL2Sy8x5S6Cg@mail.gmail.com> <A0348203-9026-46A0-B53E-3720EA0401F6@yugabyte.com> <569304.1652411286@sss.pgh.pa.us> <228E8A44-A504-4E0D-99BD-71B41812FFE2@yugabyte.com> <CANV4nBFEVNgXy9nTwXuuRRKAY_t-LMdXFeCKVTCnXx9Z6p+P4g@mail.gmail.com> <E92A52A6-ACA5-4CDD-B65A-624A2B335E65@yugabyte.com> <557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com>

* 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