pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8375: pg_hba.conf: Include_dir like in postgresql.conf
4+ messages / 4 participants
[nested] [flat]
* BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf
@ 2013-08-08 08:24 hv@tbz-pariv.de
2013-08-08 12:39 ` Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: hv@tbz-pariv.de @ 2013-08-08 08:24 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 8375
Logged by: Thomas Güttler
Email address: hv@tbz-pariv.de
PostgreSQL version: 9.2.4
Operating system: Linux
Description:
For easier deployment it would be nice to have an include_dir directive in
pg_hba.conf.
Related:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=2a0c81a12c7e6c5ac1557b0f1f4a581f23...
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf
2013-08-08 08:24 BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf hv@tbz-pariv.de
@ 2013-08-08 12:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2013-08-08 15:58 ` Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf Terje Elde <terje@elde.net>
2013-08-12 13:09 ` Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf Magnus Hagander <magnus@hagander.net>
0 siblings, 2 replies; 4+ messages in thread
From: Tom Lane @ 2013-08-08 12:39 UTC (permalink / raw)
To: hv@tbz-pariv.de; +Cc: pgsql-bugs
hv@tbz-pariv.de writes:
> For easier deployment it would be nice to have an include_dir directive in
> pg_hba.conf.
This doesn't seem like a remarkably good idea from here, mainly because
entries in pg_hba.conf are critically order-dependent. Dropping random
entries into a conf.d-like directory could produce unexpected results
--- and in this case, "unexpected result" probably means "security
failure".
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf
2013-08-08 08:24 BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf hv@tbz-pariv.de
2013-08-08 12:39 ` Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-08-08 15:58 ` Terje Elde <terje@elde.net>
1 sibling, 0 replies; 4+ messages in thread
From: Terje Elde @ 2013-08-08 15:58 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: hv@tbz-pariv.de <hv@tbz-pariv.de>; pgsql-bugs
On 8. aug. 2013, at 14:39, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> This doesn't seem like a remarkably good idea from here, mainly because
> entries in pg_hba.conf are critically order-dependent. Dropping random
> entries into a conf.d-like directory could produce unexpected results
> --- and in this case, "unexpected result" probably means "security
> failure".
Don't mean to spark or fuel any major discussion on this, but other than seconding that, I'd like to add in that if you need anything that advanced, chances are that you should either look at simplifying (wildcard usernames, etc), look at other authentication-systems (PAM), or set up a build-sytem for pg_hba.
Terje
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf
2013-08-08 08:24 BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf hv@tbz-pariv.de
2013-08-08 12:39 ` Re: BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-08-12 13:09 ` Magnus Hagander <magnus@hagander.net>
1 sibling, 0 replies; 4+ messages in thread
From: Magnus Hagander @ 2013-08-12 13:09 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: hv@tbz-pariv.de; pgsql-bugs
On Thu, Aug 8, 2013 at 2:39 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> hv@tbz-pariv.de writes:
>> For easier deployment it would be nice to have an include_dir directive in
>> pg_hba.conf.
>
> This doesn't seem like a remarkably good idea from here, mainly because
> entries in pg_hba.conf are critically order-dependent. Dropping random
> entries into a conf.d-like directory could produce unexpected results
> --- and in this case, "unexpected result" probably means "security
> failure".
If they are random, yes. You could easliy define them as ordered
though, by strict alphabetical ordering etc.
It's still a pretty decently sized footgun for people though, and I'm
not sure how useful it would actually be. And with the risk of
misconfiguration being a security hole rather than a badly configured
database (which would be the problem with a simliar thing for
postgresql.conf).
Perhaps the OP has a specific usecase to share where this would
actually be both safe and useful?
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2013-08-12 13:09 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 08:24 BUG #8375: pg_hba.conf: Include_dir like in postgresql.conf hv@tbz-pariv.de
2013-08-08 12:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2013-08-08 15:58 ` Terje Elde <terje@elde.net>
2013-08-12 13:09 ` Magnus Hagander <magnus@hagander.net>
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