Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 5F88E4B856B for ; Wed, 11 Apr 2012 02:44:38 -0300 (ADT) Received: from mail-pz0-f46.google.com ([209.85.210.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHqM6-0006rM-Ej for pgsql-jdbc@postgresql.org; Wed, 11 Apr 2012 05:44:37 +0000 Received: by dadz9 with SMTP id z9so791903dad.33 for ; Tue, 10 Apr 2012 22:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=kbHbybmq3DKmRZTAQV0WYF+l/GkPwDKnSnVJxhjYXvg=; b=ZiiMgClos2ran7Uwe5TpD+1CRkm8akusMB2f3f7lFdNoAxtWzyaU2UIPwxeIYkAhC6 nIKdDwLqtoeDE9cYBsn3wZqSKKBo5lYv1v4d+GgP1v3749dEoOPqBPQF0XM4tBmzCNE4 Otz/BHK+IClfrfxt7Fs4j95qIWFa3NNN0GYJLzM+vhWpqk0Q2G7xQ31gMYji3faRt1aP RsRQTO0IP1kx2fjqR05ye8DFSb3bIRtvA612DBxl6B33V2a5LfFG0RLwrSK/nkrxXARo ERZGzPYaL5Z0gJXDY6llJPlpLyxtpu5uoYEy9lD7p/8ArJPKxuzBzdwAQIo6tzz/cmxI si7g== Received: by 10.68.223.234 with SMTP id qx10mr34715979pbc.154.1334123060862; Tue, 10 Apr 2012 22:44:20 -0700 (PDT) Received: from GITCPC ([122.177.230.99]) by mx.google.com with ESMTPS id u5sm1899139pbu.76.2012.04.10.22.44.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Apr 2012 22:44:20 -0700 (PDT) From: "Atri Sharma" To: "'John R Pierce'" , References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <4F831234.7040209@dunslane.net> <4F8438AD.7060503@dunslane.net> <4F844089.2050308@dunslane.net> <4F84480F.1020905@dunslane.net> <9511.1334071505@sss.pgh.pa.us> <9745.1334072198@sss.pgh.pa.us> < CAHyXU0z93NV5Q=UeaeSLkYN272KDsVX0Wrd=VHLMJ_-qeGEvug@mail.gmail.com> <4f84fd5f.a93b440a.2eed.42c4@mx.google.com> <4 F8508C6.5090305@hogran ch.com> <4f850a5f.4537440a.3ae2.4930@mx.goog! le.com> <4F85183F.607 0806@hogranch.com> In-Reply-To: <4F85183F.6070806@hogranch.com> Subject: Re: [HACKERS] Regarding GSoc Application Date: Wed, 11 Apr 2012 11:14:13 +0530 Message-ID: <4f851a34.c505440a.4905.4f24@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac0XpRAN4A5ePn0tQfWknTneTKTMzwAAHZqw Content-Language: en-in X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201204/58 X-Sequence-Number: 22858 >I'm not sure what "change the arguments sent to SQL" means. A >malicious user with sufficient privileges can do all sorts of damage, >and there's not much much you can do about it short of not letting >malicious users have privileges. > >your foreign data wrapper code should probably require that the user who >creates a FDW connection to an external database have adequate >permissions. the foreign database servr already has its own >authentication hoops tha this FDW user will have to provide. Hi John, Please find the reply from Tom on the idea of SQL-Pl/Java calls: This was what I wrote: > We plan to call SQL through SPI from the FDW,which in turn would call > the Pl/Java routine. This was what Tom replied: ******* If you're saying that every Java function that the FDW needs would have to be exposed as a SQL function, that seems like a pretty high-risk (not to mention low performance) approach. Not only do you have to design a SQL representation for every datatype you need, but you have to be sure that you do not have any security holes arising from unscrupulous users calling those SQL functions manually with arguments of their choosing. ************ Please let me know your opinion on this. Atri