pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Securing records using linux grou permissions
Date: Tue, 15 Oct 2019 12:18:13 -0500
Message-ID: <cdbfa86a-bdf6-eb29-4e60-8cd05a703c9c@gmail.com> (raw)
In-Reply-To: <CAMBRECB=12dpQSREXmRHeeayXjY_FZG5cmNddetHsJBmqX52pg@mail.gmail.com>
References: <CAMBRECCQZTWTrnXJr8Sag7mbXTAbnKbH7gMXQu2qNfndbxutjg@mail.gmail.com>
	<CAHOFxGoF5=MYCVoispmsGOyK1irsyjLiSm_=xsB4vAc7VC0BLw@mail.gmail.com>
	<CAMBRECB=12dpQSREXmRHeeayXjY_FZG5cmNddetHsJBmqX52pg@mail.gmail.com>

It can be done, but you'd need much tighter integration with the OS, which 
would probably lock you in to only one platform ("Unix", not just Linux).

On 10/15/19 12:10 PM, David Gauthier wrote:
> Ok, thanks.
> I was hoping there was a way to integrate the user/permissions/groups in 
> linux with the PG permissions functionality.
>
> On Tue, Oct 15, 2019 at 12:32 PM Michael Lewis <mlewis@entrata.com 
> <mailto:mlewis@entrata.com>> wrote:
>
>     It sounds like you want row level security-
>     https://www.postgresql.org/docs/9.6/ddl-rowsecurity.html
>
>     But, you will need to define separate roles on the database and ensure
>     that the users and connecting with separate roles. The db can't
>     magically know about the permissions on the OS side.
>

-- 
Angular momentum makes the world go 'round.

view thread (6+ messages)  latest in thread

Message-ID: <cdbfa86a-bdf6-eb29-4e60-8cd05a703c9c@gmail.com>
Permalink:  ../cdbfa86a-bdf6-eb29-4e60-8cd05a703c9c@gmail.com/
Also on:    postgresql.org/message-id/cdbfa86a-bdf6-eb29-4e60-8cd05a703c9c@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: ronljohnsonjr@gmail.com
  Subject: Re: Securing records using linux grou permissions
  In-Reply-To: <cdbfa86a-bdf6-eb29-4e60-8cd05a703c9c@gmail.com>
  References: <CAMBRECCQZTWTrnXJr8Sag7mbXTAbnKbH7gMXQu2qNfndbxutjg@mail.gmail.com> <CAHOFxGoF5=MYCVoispmsGOyK1irsyjLiSm_=xsB4vAc7VC0BLw@mail.gmail.com> <CAMBRECB=12dpQSREXmRHeeayXjY_FZG5cmNddetHsJBmqX52pg@mail.gmail.com> <cdbfa86a-bdf6-eb29-4e60-8cd05a703c9c@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