pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: connect permission based on database name
Date: Wed, 25 May 2022 08:45:26 -0600
Message-ID: <780bcde5-f068-abfe-89d7-cf7631bb36ba@gmail.com> (raw)
In-Reply-To: <CAKFQuwbtH3tGhz5PNUWL6HQzhmMG_+qLpbaE3WtuSxSorMh1Pg@mail.gmail.com>
References: <3659d499-9a98-6362-7c33-d8f2947474b4@gmail.com>
	<1920549.1653488423@sss.pgh.pa.us>
	<cb6ebae1-2ee9-df60-54b7-00d0f4810850@gmail.com>
	<CAKFQuwbtH3tGhz5PNUWL6HQzhmMG_+qLpbaE3WtuSxSorMh1Pg@mail.gmail.com>

On 5/25/22 08:44, David G. Johnston wrote:
> On Wednesday, May 25, 2022, Rob Sargent <robjsargent@gmail.com> wrote:
>
>     On 5/25/22 08:20, Tom Lane wrote:
>>     Rob Sargent<robjsargent@gmail.com>  <mailto:robjsargent@gmail.com>  writes:
>>>     Just wondering if I've bumped into some security issue.
>>>     I'm somewhat surprised that "grant connect to database <dbname>  to
>>>     <role>" appears to be stored "by name"?
>>     I think you are forgetting that databases have a default GRANT CONNECT
>>     TO PUBLIC.  You need to revoke that before other grants/revokes will
>>     have any functional effect.
>>
>>     			regards, tom lane
>     And then the search path is "just a string"?
>
>
>
> Search_path isn’t a security component and accepts, but ignores, 
> unknown names.  So yes, it is just a string.
>
> David J.
>
Roger that, thanks.

view thread (6+ messages)

Message-ID: <780bcde5-f068-abfe-89d7-cf7631bb36ba@gmail.com>
Permalink:  ../780bcde5-f068-abfe-89d7-cf7631bb36ba@gmail.com/
Also on:    postgresql.org/message-id/780bcde5-f068-abfe-89d7-cf7631bb36ba@gmail.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: robjsargent@gmail.com, david.g.johnston@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: connect permission based on database name
  In-Reply-To: <780bcde5-f068-abfe-89d7-cf7631bb36ba@gmail.com>
  References: <3659d499-9a98-6362-7c33-d8f2947474b4@gmail.com> <1920549.1653488423@sss.pgh.pa.us> <cb6ebae1-2ee9-df60-54b7-00d0f4810850@gmail.com> <CAKFQuwbtH3tGhz5PNUWL6HQzhmMG_+qLpbaE3WtuSxSorMh1Pg@mail.gmail.com> <780bcde5-f068-abfe-89d7-cf7631bb36ba@gmail.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