pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lew <noone@lewscanon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL Authentication and Pooling in JBoss : static 'postgres' user VS dynamic jboss user
Date: Tue, 28 Dec 2010 08:26:11 -0500
Message-ID: <ifcogh$nli$1@news.albasani.net> (raw)
In-Reply-To: <201012281405.08236.achill@matrix.gatewaynet.com>
References: <201012281200.11993.achill@matrix.gatewaynet.com>
	<4D19B8BA.10108@hogranch.com>
	<201012281405.08236.achill@matrix.gatewaynet.com>

Achilleas Mantzios wrote:
> Yes that's the logic. One connection pool per user.
> I find it more clever, fine grained and just better from
> many perspectives (security/auditing/diagnosis/debugging being the main ones).

Too clever by half.  What do you do with the pool when a user is logged off 
for a few days, then comes back?  How many pools will you have when a thousand 
users log off and another thousand log on?  How many connections will you keep 
in each pool?  How will the DB engine keep up with all that?

I predict that you will get no increase in security or auditing capability 
that couldn't be handled with the conventional "one user per application" 
approach, and that diagnosis and debugging will be complicated in some other 
way, and that you'll have performance and resource issues.

> We have LDAP based authentication in Jboss. And i [sic] use the very same LDAP server for postgresql authentication as well.
> So i [sic] have one point of authentication for both Jboss, PostgreSQL, the very same LDAP server.
> User logs in, and his credentials are delegated to PostgreSQL with *no* involvement of any application code.
> So from a one-user monolithic declarative model we can go now on fully multi sql [sic] user, with *no changes* in the app,
> or the .EAR configuration!!!
> As we speak i [sic] am testing it with max 4 connections/user.
> Both systems (postgresql [sic], jboss [sic]) support this as is, with just recompilation (postgresql) / configuration (jboss).
> The main question is twofold: If any one has any theoretical objections to this model,
> and 2nd if anyone has encountered any problems by using this or smth [sic] similar.

-- 
Lew
Ceci n'est pas une pipe.



view thread (8+ messages)  latest in thread

Message-ID: <ifcogh$nli$1@news.albasani.net>
Permalink:  ../ifcogh$nli$1@news.albasani.net/
Also on:    postgresql.org/message-id/ifcogh$nli$1@news.albasani.net

 · 

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-jdbc@postgresql.org
  Cc: noone@lewscanon.com
  Subject: Re: PostgreSQL Authentication and Pooling in JBoss : static 'postgres' user VS dynamic jboss user
  In-Reply-To: <ifcogh$nli$1@news.albasani.net>
  References: <201012281200.11993.achill@matrix.gatewaynet.com> <4D19B8BA.10108@hogranch.com> <201012281405.08236.achill@matrix.gatewaynet.com> <ifcogh$nli$1@news.albasani.net>

* 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