From: brodgers3@oreillyauto.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14333: Remote connections for members of role in pg_hba.conf
Date: Wed, 21 Sep 2016 16:53:36 +0000
Message-ID: <20160921165336.1353.35389@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14333
Logged by: B. Rodgers
Email address: brodgers3@oreillyauto.com
PostgreSQL version: 9.3.13
Operating system: Ubuntu 14.04.4 LTS
Description:
--- create a role "read_group" with permissions to connect and select on all
objects
--- Similar, create new user to be managed by "read_group" permissions ---
CREATE ROLE myuser LOGIN CONNECTION LIMIT 5;
GRANT read_group TO myuser;
--- Verify user exists and is member of group "read_group" ---
mydb=> \dg myuser
List of roles
Role name | Attributes | Member of
-----------+---------------+------------------
myuser | 5 connections | {read_group}
--- pg_hba.conf entry intended to allow members of "read_group" to connect
---
host mydb +read_group 172.XX.YY.0/24 md5
--- Error received upon attempting remote connection ---
FATAL: no pg_hba.conf entry for host "172.XX.YY.ZZ", user "myuser", database
"mydb", SSL off
Expected either valid connection or password error.
Looking to control arbitrary large list of users with just a couple managed
roles such as "read" or "write" groups such that only the "read" and "write"
groups are specified in places like pg_hba.conf.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: brodgers3@oreillyauto.com
Subject: Re: BUG #14333: Remote connections for members of role in pg_hba.conf
In-Reply-To: <20160921165336.1353.35389@wrigleys.postgresql.org>
References: <20160921165336.1353.35389@wrigleys.postgresql.org>
* 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