Re: function body actors (was: [PERFORM] viewing source code) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: function body actors (was: [PERFORM] viewing source code)
Date
Msg-id 10257.1198263464@sss.pgh.pa.us
Whole thread Raw
In response to Re: function body actors (was: [PERFORM] viewing source code)  ("Merlin Moncure" <mmoncure@gmail.com>)
Responses Re: function body actors (was: [PERFORM] viewing source code)  (Andrew Sullivan <ajs@crankycanuck.ca>)
List pgsql-hackers
"Merlin Moncure" <mmoncure@gmail.com> writes:
> ISTM the main issue is how exactly the authenticated user interacts
> with the actor to give it the information it needs to get the real
> key.  This is significant because we don't want to be boxed into an
> actor implementation that doesn't allow that interaction.

We don't?  What purpose would such a setup serve?  I would think
that for the applications we have in mind, the *last* thing you
want is for the end user to hold the key.  The whole point of this
is to keep him from seeing the function source code, remember?

Andrew's suggestion of an outside-the-database key server is
apropos, but I think it would end up being a situation where
the key server is under the control of whoever wrote the function
and wants to guard it against the end user.  The key server would
want some kind of authentication token but I think that could
perfectly well be an ID for the database server, not the individual
end user.  There's no need for anything as awkward as an interactive
sign-on, AFAICS.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Pedro Belmino"
Date:
Subject: Postgres.bki
Next
From: Tom Lane
Date:
Subject: Re: Postgres.bki