X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7F8D0D1B8C2 for ; Fri, 31 Oct 2003 16:59:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 29922-03 for ; Fri, 31 Oct 2003 12:58:54 -0400 (AST) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 67C57D1B8B0 for ; Fri, 31 Oct 2003 12:58:46 -0400 (AST) Received: by ecintweb.eldocomp.com with XWall v3.28 ; Fri, 31 Oct 2003 09:58:43 -0700 From: Naomi Walker To: Jamie Lawrence Cc: Matt Clark , Marek Florianczyk , "pgsql-admin@postgresql.org" Subject: Re: performance problem - 10.000 databases Date: Fri, 31 Oct 2003 09:58:35 -0700 X-Assembled-By: XWall v3.28 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Message-ID: <5.1.0.14.2.20031031095410.03a0ed98@imap.eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/401 X-Sequence-Number: 10962 We have a similar issue regarding security. Some of the access to our=20 database will be by ODBC connections for reporting purposes (ie. Actuate=20 Report/Crystal Reports). Without creating a zillion or so views (which I= =20 suspect carries with it alot of overhead), I believe it would be tricky to= =20 maintain security. Our application is medical related, and we are bound by HIPAA rules, so=20 security is most important. How would you architect this scenario so our= =20 ASP customers cannot see each others data? Naomi > > I was more thinking that it might be possible to manage the security at= =20 > a different level than the DB. > > > > >We do this with users and permissions. > >Each virtual host has an apache config include specifying a db user, >pass (and database, although most of them use the same one). >Permissions on the database tables are set so that a given vhost can >only access their own data. > >Our setup is mod_perl. Don't know how one would go about doing this with >PHP, but I imagine it has some mechanism for per-vhost variables or >similar. > >-j > >-- >Jamie Lawrence jal@jal.org >"Remember, half-measures can be very effective if all you deal with are >half-wits." > - Chris Klein > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) ---------------------------------------------------------------------------= ---------------------------------------------- Naomi Walker Chief Information Officer Eldorado Computing, Inc. nwalker@eldocomp.com 602-604-3100 ---------------------------------------------------------------------------= ---------------------------------------------- Insanity is doing things in the same way and expecting different results. ---------------------------------------------------------------------------= --------------------------------------------- -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.