pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Atri Sharma <atri.jiit@gmail.com>
To: 'John R Pierce' <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: [HACKERS] Regarding GSoc Application
Date: Wed, 11 Apr 2012 11:14:13 +0530
Message-ID: <4f851a34.c505440a.4905.4f24@mx.google.com> (raw)
In-Reply-To: <4F85183F.6070806@hogranch.com>
References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com>
	<CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com>
	<CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com>
	<4F831234.7040209@dunslane.net>
	<CAOeZVieUiksGhFFGK_HYdZhCEH13Q7OpOJ0o2Wph-XUbkQYm2w@mail.gmail.com>
	<4F8438AD.7060503@dunslane.net>
	<CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@mail.gmail.com>
	<4F844089.2050308@dunslane.net>
	<CAHyXU0zAZNiWdWCfaFc==O+5Z9ccDSxwu5WOG4ds4ZQBgyqNOw@mail.gmail.com>
	<4F84480F.1020905@dunslane.net>
	<CAHyXU0wUg1TLdyMm0PzQwgYb6iRyCP4+YkqqaxWGUNUZLsj_PA@mail.gmail.com>
	<9511.1334071505@sss.pgh.pa.us>
	<CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com>
	<9745.1334072198@sss.pgh.pa.us>
	<CAHyXU0zKvvviUPr=xn-XJHdWVOEEBVoUDEDagdh5kseefD E1iw@mail.gmail.com>
	< 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>


>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








view thread (43+ messages)  latest in thread

Message-ID: <4f851a34.c505440a.4905.4f24@mx.google.com>
Permalink:  ../4f851a34.c505440a.4905.4f24@mx.google.com/
Also on:    postgresql.org/message-id/4f851a34.c505440a.4905.4f24@mx.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: atri.jiit@gmail.com, pierce@hogranch.com
  Subject: Re: [HACKERS] Regarding GSoc Application
  In-Reply-To: <4f851a34.c505440a.4905.4f24@mx.google.com>
  References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com> <CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com> <4F831234.7040209@dunslane.net> <CAOeZVieUiksGhFFGK_HYdZhCEH13Q7OpOJ0o2Wph-XUbkQYm2w@mail.gmail.com> <4F8438AD.7060503@dunslane.net> <CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@mail.gmail.com> <4F844089.2050308@dunslane.net> <CAHyXU0zAZNiWdWCfaFc==O+5Z9ccDSxwu5WOG4ds4ZQBgyqNOw@mail.gmail.com> <4F84480F.1020905@dunslane.net> <CAHyXU0wUg1TLdyMm0PzQwgYb6iRyCP4+YkqqaxWGUNUZLsj_PA@mail.gmail.com> <9511.1334071505@sss.pgh.pa.us> <CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com> <9745.1334072198@sss.pgh.pa.us> <4f84fd5f.a93b440a.2eed.42c4@mx.google.com> <4f851a34.c505440a.4905.4f24@mx.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox