From: Tim Cross <theophilusx@gmail.com>
To: Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Can Pg somehow recognize/honor linux groups to control user access ?
Date: Thu, 23 Aug 2018 08:17:06 +1000
Message-ID: <87efeq59nh.fsf@gmail.com> (raw)
In-Reply-To: <e7b8eecc-b56a-732d-2bff-37f2dc39f471@bmrb.wisc.edu>
References: <CAMBRECCm98COXfFXcCzfh088TnX1EA7zozxzyDbErpXz_t9t2Q@mail.gmail.com>
<5AE89398-678C-436D-9CD0-8FDAB48546DD@aol.com>
<CAKFQuwZVmgMHWU9zN4c1ihD3a1WPT_O+83+7mQ7Ta9WMcxthzw@mail.gmail.com>
<FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.com>
<e7b8eecc-b56a-732d-2bff-37f2dc39f471@bmrb.wisc.edu>
Dimitri Maziuk <dmaziuk@bmrb.wisc.edu> writes:
> On 08/22/2018 11:38 AM, Ravi Krishna wrote:
>>
>> In fact DBAs don't even need to get involved when a new user needs DB access. Sysadmin had to just add that user in a group and we are done.
>
> How is that different from giving your grants to a database role and
> just telling the new user the name and password of that role to connect as?
I hope your not suggesting that multiple users use the same login
credentials to access the database? This would totally destroy the
important security principals of attribution and repudiation.
I have not looked at PAM for PG, but that is certainly something worth
checking out. I have used it in other contexts and it is very
powerful. Depending on the implementation, theoretically, it should be
possible to have PAM provide the information to determine what database
roles to give to a login. What you will probably need is some additional
component to act as the 'meta-directory' so that you can have consistent
usernames, uid/gid across servers/systems (i.e. ldap/ad)
Something else to look at is openLDAP. Again, not yet looked at it in
the PG context, but have used it successfully to manage access to other
systems (including databases in other RDMS) before. Currently, we use
openLDAP and PAM to manage access on Linux servers. One of the things on
my 'todo' list is to look at it in a PG context, just haven't got there
yet.
Avoid any solution which requires a 'generic' account with shared
passwords. Apart from the security implications, you will almost
certainly run into problems with auditors and many regulatory
standards.
--
Tim Cross
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: theophilusx@gmail.com, dmaziuk@bmrb.wisc.edu
Subject: Re: Can Pg somehow recognize/honor linux groups to control user access ?
In-Reply-To: <87efeq59nh.fsf@gmail.com>
References: <CAMBRECCm98COXfFXcCzfh088TnX1EA7zozxzyDbErpXz_t9t2Q@mail.gmail.com> <5AE89398-678C-436D-9CD0-8FDAB48546DD@aol.com> <CAKFQuwZVmgMHWU9zN4c1ihD3a1WPT_O+83+7mQ7Ta9WMcxthzw@mail.gmail.com> <FF6CDF45-61AC-4DD2-9FD0-8B4265D57927@aol.com> <e7b8eecc-b56a-732d-2bff-37f2dc39f471@bmrb.wisc.edu> <87efeq59nh.fsf@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