Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3M2Ku311476 for ; Sat, 21 Apr 2001 22:20:56 -0400 (EDT) (envelope-from pgsql-general-owner@postgresql.org) Received: from web12502.mail.yahoo.com (web12502.mail.yahoo.com [216.136.173.194]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3KF4V383099 for ; Fri, 20 Apr 2001 11:04:31 -0400 (EDT) (envelope-from lonnie_cumberland@yahoo.com) Message-ID: <20010420150426.45854.qmail@web12502.mail.yahoo.com> Received: from [141.217.140.65] by web12502.mail.yahoo.com; Fri, 20 Apr 2001 08:04:26 PDT Date: Fri, 20 Apr 2001 08:04:26 -0700 (PDT) From: Lonnie Cumberland Subject: Client/Server Security question To: pgsql-interfaces@postgresql.org Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200104/903 X-Sequence-Number: 8100 Hello All, We are developing an application that will allow our websites to talk to our database. In the interest of security, I am wondering if it is possible to turn off some of the functions in the SQL command list such that a user can only communicate to the database through our functions. What I mean is this. We have built a number of "C" extensions and PL/pgSQL proceedures that will work on our database, but I only want to allow an outside query to only one or two of our selected entry points. The webserver interface query statement might, for example, be able to only call "select register_user(.......)" or "select login_user(....)" and NONE of the other PostgreSQL command functions. I only want to allow access to these functions from the outside world, but the server needs to be able to execute all of the original functions without restrictions. Any information on this would be greatly appreciated, Lonnie __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/