pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Paul Bonaud <paul@bonaud.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Fine grained permissions on User Mapping
Date: Wed, 3 Jun 2020 13:22:25 -0700
Message-ID: <e7b6bc2c-3e62-41ef-1925-3879fe5a2259@aklaver.com> (raw)
In-Reply-To: <CAE8rFStTfPeDwUZtg+y6rMZUWx31GVQEYxc9Oi5Hsyi6bZTzTQ@mail.gmail.com>
References: <CAE8rFSv7GwNRG4rdATuQdmaBOd+DMSFJtRHMcZi8wWGk9eAjVg@mail.gmail.com>
	<539939.1591106906@sss.pgh.pa.us>
	<CAE8rFStTfPeDwUZtg+y6rMZUWx31GVQEYxc9Oi5Hsyi6bZTzTQ@mail.gmail.com>

On 6/3/20 4:11 AM, Paul Bonaud wrote:
> Hi Tom,
> 
> Thank you very much for your answer.
> 
> I was worried to get this kind of solution, i.e. “don't be so miserly as 
> not to create a separate one for each privilege level you need.”, 
> however in the case of a remote database **you have no control over**it 
> sounds pretty impossible to do.
> 
> If I understand correctly, my initial question doesn't have a solution 
> within postgres, does this sound right?

As it stands now I can't think of one. You might reach out to the 
postgres_fdw folks and see if they could get it to use a service file:

https://www.postgresql.org/docs/12/libpq-pgservice.html

Then the user mapping could use information the end user can't see 
unless they had permissions on the file system.

> 
> Thanks again !
> Paul
> **


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (5+ messages)  latest in thread

Message-ID: <e7b6bc2c-3e62-41ef-1925-3879fe5a2259@aklaver.com>
Permalink:  ../e7b6bc2c-3e62-41ef-1925-3879fe5a2259@aklaver.com/
Also on:    postgresql.org/message-id/e7b6bc2c-3e62-41ef-1925-3879fe5a2259@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, paul@bonaud.fr, tgl@sss.pgh.pa.us
  Subject: Re: Fine grained permissions on User Mapping
  In-Reply-To: <e7b6bc2c-3e62-41ef-1925-3879fe5a2259@aklaver.com>
  References: <CAE8rFSv7GwNRG4rdATuQdmaBOd+DMSFJtRHMcZi8wWGk9eAjVg@mail.gmail.com> <539939.1591106906@sss.pgh.pa.us> <CAE8rFStTfPeDwUZtg+y6rMZUWx31GVQEYxc9Oi5Hsyi6bZTzTQ@mail.gmail.com> <e7b6bc2c-3e62-41ef-1925-3879fe5a2259@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