X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B31552A7E for ; Thu, 18 Aug 2005 10:50:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00248-02 for ; Thu, 18 Aug 2005 13:50:03 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id D969852A2D for ; Thu, 18 Aug 2005 10:50:02 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id CF47730B42; Thu, 18 Aug 2005 16:01:20 +0200 (MET DST) From: Christopher Browne X-Newsgroups: pgsql.sql Subject: Re: How to secure PostgreSQL Data for distribute? Date: Thu, 18 Aug 2005 08:58:07 -0400 Organization: cbbrowne Computing Inc Lines: 49 Message-ID: References: <43041C23.6050908@travelamericas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) Cancel-Lock: sha1:gB8t2CjfQoWHO4FdrrDhao73HY4= To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.117 required=5 tests=[AWL=0.117] X-Spam-Level: X-Archive-Number: 200508/139 X-Sequence-Number: 22367 > Premsun Choltanwanich wrote: > >> Dear All, >> I need to distribute my application that use PostgreSQL as >> database to my customer. But I still have some questions in my mind >> on database security. I understand that everybody who get my >> application database will be have a full control permission on my >> database in case that PostgreSQL already installed on their computer >> and they are an administrator on PostgreSQL. So that mean data, >> structure and any ideas contain in database will does not secure on >> this point. Is my understanding correct? >> What is the good way to make it all secure? Please advise. > > If your customer can access the data, they can access the data. If > they have control over the system, they can access the system. > > I guess you could build some sort of encryption into your client, but > that seems pretty easy to circumvent. > > The short answer is that there is no good way to do this. If you are > worried about this, the technology isn't going to save you. No > technology will save you. Instead, I would highly suggest discussing > the matter with an attourney and see if there is a legal remedy that > might provide adequate protection. It looks as though the Original Poster is in Thailand; if the customer is elsewhere in Asia, it might become challenging to find a context where "legal jurisdiction" or "legal remedy" are well enough defined for this to work out well. It may be that the prime issue is whether or not the customer is trustworthy or not; if the answer is "not," and legal remedies are not easy to get, then there are essentially two choices: 1. Do not distribute the database. The customer must access the database from the vendor's site. At the extreme end of this, the application would not directly submit database queries, but rather redefine the application in a client/server fashion where the customer side submits requests via some protocol that does not expose anything about the database schema. 2. If the customer is REALLY not able to be trusted, then maybe they can't be a customer. -- (reverse (concatenate 'string "moc.liamg" "@" "enworbbc")) http://cbbrowne.com/info/ If we were meant to fly, we wouldn't keep losing our luggage.