Re: Converting from single user w/pool to multiple users

From: Jeff Amiel <jamiel(at)istreamimaging(dot)com>
To: Guy Rouillier <guyr(at)masergy(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Converting from single user w/pool to multiple users
Date: 2005-03-24 22:25:29
Message-ID: 42433E59.4010201@istreamimaging.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Guy Rouillier wrote:

>Do you really want to try to administer
>1000s of database user accounts in addition to whereever you maintain
>these same accounts for non-DB authentication. This assumes, of course,
>that if you are interested in accountability at all that you
>authenticate somewhere. And I certainly wouldn't want to sacrifice
>memory that could be put to good use processing database requests to
>holding several thousand idle database connections
>
>
Actually, we dont think that the management of the database accounts
will be an issue. Our user administration system will create the users
in postgres at the same time it creates the appropriate 'profile' in our
application databases. Any changes (such as disabling the user) is also
propogated to both places via stored procedure(function) that modifies
both as appropriate.

>Instead, again assuming you authenticate users, you can propogate that
>security context to JBoss. Then you can secure the EJB or MBean method
>that obtains the database connection from the pool (and presumably does
>something useful) to respect the security context. If you want to
>audit, you have the security context information, so you can extract the
>authentication credentials from there to write to an audit table (or
>even include in every row you write to the database.)
>
>
The issue is really propogating the authenticaion credentials to the
database itself.....it's our ON INSERT/ON UPDATE/ON DELETE triggers that
are doing the auditing and they need the user ID to accurately log
changes. In lieu of any other per-connection persistant data option,
this seems like the best bet.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guy Rouillier 2005-03-24 22:46:47 Re: Converting from single user w/pool to multiple users
Previous Message Sven Willenberger 2005-03-24 22:14:54 Re: plperl doesn't release memory