From Premsun@nsasia.co.th Thu Aug 18 02:56:58 2005 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 2CCF952969 for ; Wed, 17 Aug 2005 23:56:58 -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 12313-08 for ; Thu, 18 Aug 2005 02:56:56 +0000 (GMT) Received: from mail.nsasia.co.th (mail.nsasia.co.th [203.146.6.34]) by svr1.postgresql.org (Postfix) with ESMTP id 9BE3F52A18 for ; Wed, 17 Aug 2005 23:56:54 -0300 (ADT) Received: from [192.168.200.39] (helo=mail.nsasia.co.th) by astaro.nsasia.co.th with esmtp (Exim 4.43) id 1E5aaP-0004Xo-Bl for pgsql-sql@postgresql.org; Thu, 18 Aug 2005 09:56:57 +0700 Received: from Thailand-MTA by mail.nsasia.co.th with Novell_GroupWise; Thu, 18 Aug 2005 09:56:43 +0700 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Thu, 18 Aug 2005 09:56:35 +0700 From: "Premsun Choltanwanich" To: Subject: How to secure PostgreSQL Data for distribute? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__Part23016EF3.0__=" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.096 required=5 tests=[AWL=0.009, HTML_40_50=0.086, HTML_MESSAGE=0.001] X-Spam-Level: X-Archive-Number: 200508/134 X-Sequence-Number: 22362 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part23016EF3.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Dear All, =20 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 administrato= r on PostgreSQL. So that mean data, structure and any ideas contain in = database will does not secure on this point. Is my understanding correct? =20 What is the good way to make it all secure? Please advise. --=__Part23016EF3.0__= Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
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 secu= re? Please advise.
--=__Part23016EF3.0__=-- From deruvo@gmail.com Thu Aug 18 03:32:28 2005 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 1CACB52969 for ; Thu, 18 Aug 2005 00:32:28 -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 14386-01 for ; Thu, 18 Aug 2005 03:32:22 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by svr1.postgresql.org (Postfix) with ESMTP id 568F952940 for ; Thu, 18 Aug 2005 00:32:21 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i4so287399wra for ; Wed, 17 Aug 2005 20:32:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=suSOCFQ/KpmcKMTBSchTUDNUqj6bwM/mOyINjkqyj4BJLSGh93q97Xy2XVQ1jdbU3Jw1rHhjCFfQjP3u0cRiD9mstkuPK1YskxZmQyfZLMDtL1ygKZiCPtqrQ8Fwn7FzXpPvBwj+rKFWdKQUi/PRBJvjDEMA+G3IJpZlshEriCc= Received: by 10.54.4.45 with SMTP id 45mr893101wrd; Wed, 17 Aug 2005 20:32:21 -0700 (PDT) Received: by 10.54.135.1 with HTTP; Wed, 17 Aug 2005 20:32:21 -0700 (PDT) Message-ID: Date: Wed, 17 Aug 2005 23:32:21 -0400 From: Pascual De Ruvo To: Premsun Choltanwanich Subject: Re: How to secure PostgreSQL Data for distribute? Cc: pgsql-sql@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.163 required=5 tests=[AWL=0.139, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/135 X-Sequence-Number: 22363 On 8/17/05, Premsun Choltanwanich wrote: > =20 > Dear All,=20 > =20 > 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 wi= ll > 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 databas= e > will does not secure on this point. Is my understanding correct?=20 > =20 > What is the good way to make it all secure? Please advise.=20 If your customer has the root password of the machine that is running postgresql, there's nothing you can do in order to limit the access to the database structure. My recommendation is: show them the code, make it free! From lawgon@thenilgiris.com Thu Aug 18 04:21:14 2005 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 D50725288B for ; Thu, 18 Aug 2005 01:21:14 -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 50640-02 for ; Thu, 18 Aug 2005 04:21:11 +0000 (GMT) Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by svr1.postgresql.org (Postfix) with ESMTP id 85BBB528DE for ; Thu, 18 Aug 2005 01:21:06 -0300 (ADT) Received: from [61.3.110.136] (helo=thenilgiris.web) by sharp.noc24x7.com with esmtp (Exim 4.50) id 1E5btp-0001V9-IH for pgsql-sql@postgresql.org; Thu, 18 Aug 2005 09:51:06 +0530 Received: by thenilgiris.web (Postfix, from userid 500) id EEBAC5B983; Thu, 18 Aug 2005 09:51:03 +0530 (IST) From: Kenneth Gonsalves To: pgsql-sql@postgresql.org Subject: Re: How to secure PostgreSQL Data for distribute? Date: Thu, 18 Aug 2005 09:51:03 +0530 User-Agent: KMail/1.6.1 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200508180951.03451.lawgon@thenilgiris.com> X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.067 required=5 tests=[AWL=0.017, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/136 X-Sequence-Number: 22364 On Thursday 18 Aug 2005 8:26 am, 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? correct > > What is the good way to make it all secure? Please advise. no way - you could try to frighten him so much that he is afraid to=20 touch anything. Or you could educate him so that he can creatively=20 touch some parts of it and ease your burden of support and=20 maintainence. Also enter into a proper license agreement with him so=20 that he doesnt redistribute or hijack your ideas and your code. In=20 the long run, if you follow this course, you will find that you will=20 be able to serve your customers more effectively =2D-=20 regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in =E0=B2=87=E0=B2=82=E0=B2=A1=E0=B3=8D=E0=B2=B2=E0=B2=BF=E0=B2=A8=E0=B2=95=E0= =B3=8D=E0=B2=B8 =E0=AE=B5=E0=AE=BE=E0=AE=B4=E0=AF=8D=E0=AE=95! From chris@travelamericas.com Thu Aug 18 05:27:02 2005 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 007C05286E for ; Thu, 18 Aug 2005 02:27:02 -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 83027-09 for ; Thu, 18 Aug 2005 05:27:00 +0000 (GMT) Received: from mail.travelamericas.com (unknown [206.130.134.147]) by svr1.postgresql.org (Postfix) with SMTP id A3DD55280F for ; Thu, 18 Aug 2005 02:26:59 -0300 (ADT) Received: (qmail 4342 invoked from network); 18 Aug 2005 05:26:59 -0000 Received: from unknown (HELO ?10.0.0.253?) (10.0.0.253) by verkiel.travelamericas.com with SMTP; 18 Aug 2005 05:26:59 -0000 Message-ID: <43041C23.6050908@travelamericas.com> Date: Wed, 17 Aug 2005 22:26:59 -0700 From: Chris Travers User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Premsun Choltanwanich , pgsql-sql Subject: Re: How to secure PostgreSQL Data for distribute? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.043 required=5 tests=[AWL=-0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/137 X-Sequence-Number: 22365 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. Best Wishes, Chris Travers Metatron Technology Consulting From cbbrowne@acm.org Thu Aug 18 13:50:13 2005 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. From fmiddleton@verizon.net Thu Aug 18 23:35:28 2005 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 F153452CA0 for ; Thu, 18 Aug 2005 20:35:28 -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 87243-02 for ; Thu, 18 Aug 2005 23:35:25 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id 81ACA52CB7 for ; Thu, 18 Aug 2005 20:35:24 -0300 (ADT) Received: from [192.168.1.12] ([151.200.119.197]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ILF00MZ0YV2FSV4@vms044.mailsrvcs.net> for pgsql-sql@postgresql.org; Thu, 18 Aug 2005 18:35:27 -0500 (CDT) Date: Thu, 18 Aug 2005 19:36:48 -0400 From: Ferindo Middleton Jr Subject: Re: How to secure PostgreSQL Data for distribute? To: Premsun@nsasia.co.th, pgsql-sql@postgresql.org Reply-To: fmiddleton@verizon.net Message-id: <43051B90.5040602@verizon.net> Organization: Sleek Collar MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.75 required=5 tests=[DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376] X-Spam-Level: * X-Archive-Number: 200508/153 X-Sequence-Number: 22381 On 8/17/05, 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 it is "your" database, then I would not give them the database, but merely offer the information in the database as a "service." This, of course, can be implemented through the internet. That way, the rules that govern which customers can access and see which pieces of data can be implemented in the application itself so you wouldn't have give them all the data and structure the customer doesn't need to see if the rules governing how they access the database from the application are built into the application itself, with possibly authentication credentials stored in the database and the athentication mechanism implemented in the application. The only other way I can imagine where you can get beyond, atleast not showing the data they don't need to see, is querying the database to filter out the data 'belonging' to the customer, and export that filtered data to isolated tables comprising a new database that could then be given to the customer, watered down to what's relevant to them. If it's "your" database then, hey, don't give it to them. If it's really "their" database then you wouldn't really have a problem with giving them their data... But it's apparently not really "their" database so keep it to yourself and offer access to the data as a service. Ferindo -- Ferindo Middleton Chief Architect Sleekcollar.com