Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 98010 invoked from network); 6 Jul 2009 14:08:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 14:08:48 -0000 Received: (qmail 50495 invoked by uid 500); 6 Jul 2009 14:08:58 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 50466 invoked by uid 500); 6 Jul 2009 14:08:58 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 50455 invoked by uid 99); 6 Jul 2009 14:08:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 14:08:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of feeder.of.the.bears@gmail.com designates 209.85.217.227 as permitted sender) Received: from [209.85.217.227] (HELO mail-gx0-f227.google.com) (209.85.217.227) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 14:08:44 +0000 Received: by mail-gx0-f227.google.com with SMTP id 27so1682022gxk.12 for ; Mon, 06 Jul 2009 07:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=7WexvrQZ4r0yuKYrwcKtZ4quUs/VtEqVqht3ziIGNMA=; b=kGYyoxJQc3PWqSKMAHut8mxXB6261kV67LpCH74aXktoE2t8eepIrvkCYWzI0ooZE4 T1wyXY8WnaYlZ2RU2vFdZ8rtr66AcFjlO8fLy9MMA8OTcHN4jiG20IsFQUQfovy+CkR1 sIN/f/76BJk9/eIUzkzqeLZGklQT7jgw7309k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=untkBKQbohhrpW1yac+mrFIwtBY/LYBP8dYc3vuQ/MTeXv+B/u+Q71+qTKllGfvN8l OXoCszXZVjpoi3h0DlS5wdvhhsTYChZ9VSXjyldb2yXn+/6DAii/N4mscp20lF3ed1Bn mWAeNkqeL6QMY+Fl0CbvtTNkOwmSVGENLtOM8= MIME-Version: 1.0 Received: by 10.90.73.17 with SMTP id v17mr4211699aga.54.1246889303502; Mon, 06 Jul 2009 07:08:23 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Jul 2009 07:08:23 -0700 Message-ID: Subject: Re: Scala interpreter action From: David Pollak To: esme-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=00163630f5c90271e2046e0a0a07 X-Virus-Checked: Checked by ClamAV on apache.org --00163630f5c90271e2046e0a0a07 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Jul 6, 2009 at 1:43 AM, Richard Hirsch wrote: > Should I deploy with this functionality active or not? I wouldn't. It's kinda like taping a "Hack Me" sticker onto the site. :-) > > > I just did a stax deplyoment with the > actions.scala_interpreter.enable=false > > D. > > On Mon, Jul 6, 2009 at 10:24 AM, Vassil Dichev wrote: > >> Should we remove it completely from the source or should we just > >> deactivate it by default? > >> > >> I agree that I wouldn't activate it in a producticve setting but it > >> might be useful while developing. > > > > Granted, this might not be the best way to monitor/debug ESME (e.g. if > > memory is so tight the JVM won't be able to create a new interpreter > > instance or send a new message). When I implemented the feature I was > > actually thinking of Dick's request for making it easier for ESME > > newcomers to learn Scala. I've also spent some time thinking about > > using ESME in a university and this feature makes a lot of sense in a > > classroom. > > > > My point is, I still think it could be made secure with a careful > > java.policy file (which a conscientious administrator should use > > anyway). David, do you think the Scala interpreter is impossible to > > secure or just not worth the effort? Also, what difference would it > > make to use Rhino, but not Scala in terms of a secure interpreter? The > > Scala interpreter implementation does use a new classloader and even > > allows you to override it and implement your own one. Try e.g. "import > > org.apache.esme.model.Message" or "import net.liftweb.util.Box". > > > > If the primary concern is trust in a federation, we could make it so a > > server is not allowed to participate in a federation if the Scala > > interpreter action is enabled. > > > > Cheers, > > Vassil > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --00163630f5c90271e2046e0a0a07--