From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ravikkumar.22@gmail.com
Subject: BUG #15162: individual user can connect from anywhere with pgadmin
Date: Thu, 19 Apr 2018 09:34:56 +0000
Message-ID: <152413049686.459.7999942934911476625@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15162
Logged by: Ravikumar S
Email address: ravikkumar.22@gmail.com
PostgreSQL version: 10.3
Operating system: rhel
Description:
in pg_hba.conf
host all all 0.0.0.0/0 only pgadmin work from anywhere.
host all user 0.0.0.0/0 user cant connect from anywhere
my project's application server running from XX.XXX.XX.XX and i created
user for accessing database from that host
so in pg_hba.conf i configured this for app user.
host db1 apuser xx.xx.xxx.xxx/0
for monitoring purpose i created one more user with select permission only
he should connect database from anywhere.
with below configuration
host db1 apuser xx.xxx.xx.xx ---------for app user only connect
from that ip address
host db1 monuser 0.0.0.0/0 --------- this user should connect
from anywhere
its not working...is there any way for individual user connection
restriction in pg_hba.conf file.???
please help with this
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: noreply@postgresql.org, ravikkumar.22@gmail.com
Subject: Re: BUG #15162: individual user can connect from anywhere with pgadmin
In-Reply-To: <152413049686.459.7999942934911476625@wrigleys.postgresql.org>
References: <152413049686.459.7999942934911476625@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