Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 24589 invoked from network); 30 May 2007 21:41:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 21:41:29 -0000 Received: (qmail 4789 invoked by uid 500); 30 May 2007 21:41:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4742 invoked by uid 500); 30 May 2007 21:41:33 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 4733 invoked by uid 99); 30 May 2007 21:41:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 14:41:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [68.142.198.207] (HELO smtp108.sbc.mail.mud.yahoo.com) (68.142.198.207) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 30 May 2007 14:41:27 -0700 Received: (qmail 76279 invoked from network); 30 May 2007 21:41:05 -0000 Received: from unknown (HELO ?9.72.133.77?) (ddebrunner@sbcglobal.net@32.97.110.142 with plain) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 30 May 2007 21:41:05 -0000 X-YMail-OSG: BK7fiZwVM1n.pqAKXiFcMd6.tZN5TB9I6VZXQN1smP.W23CWN7.zYt4Dt5aQX96ey6rG9ioo.Q-- Message-ID: <465DEF2F.2080105@apache.org> Date: Wed, 30 May 2007 14:39:59 -0700 From: Daniel John Debrunner User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: SecurityManager incompatibility (was Re: 10.3 Concern: Need to make DBO restrictions [Derby-2264] optional at upgrade) References: <56a83cd00705301401y303fd811mef651f672d3d3d34@mail.gmail.com> In-Reply-To: <56a83cd00705301401y303fd811mef651f672d3d3d34@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org David Van Couvering wrote: > Also, if I understand things correctly, then when you upgrade to Derby > 10.3 the *default* behavior is that the Network Server will *not* > start up, because most users (in development anyway, which is where > people will first experience Derby 10.3) will not have turned on user > authentication. I know it's turned off for NetBeans. > > it seems to me that if the user has not enabled user authentication, > they should be able to run the Network Server without the security > manager. I can see two major usage modes: > > -> authentication turned on and security manager enabled > -> authentication turned off and security manager disabled > > It seems to me we should support the first scenario. If the user has > authentication turned off, we can let the server start up with the > following message: "WARNING: user authentication is not enabled. > You are now running in an insecure mode." And then turn off the > security manager for the network server. How about a minor re-wording ... "WARNING: user authentication is not enabled. You are now running in an insecure mode, your machine may have already been hacked by the time you read this." :-) > This keeps things compatible but lets users know they're not in a > secure mode. If you keep seeing this in your server log every time > you start up, you'll get the hint. I'm not actually sure that people look in the log files on a regular basis, so I don't think relying on a warning to make a system secure is a good approach. However, I do wonder if the stopping boot with no-authentication is too severe. I see a couple of possible approaches (maybe three): 1) Block the boot only if the server is accepting remote clients (listening on something other than localhost). This then would "match" the comment in the 10.2 documentation under "derby.drda.host": "Ensure that you are running under the security manager and that user authorization is enabled before you enable remote connections with this property." Thus 10.3 is enforcing that "Ensure". This means the netbeans example would boot, that is any non-configured network server would boot. It would be open to connections and therefore hostile attacks from any user on that machine. A less of a risk, but still, by booting the (unauthenticated) network server on a shared machine one would be exposing oneself to having any other user have access to your own private files. 2) Boot an unauthenticated network server but install a security manager. Allows at least DoS attacks (e.g. create many databases) from anyone who can connect. Limits their ability to perform execute arbitrary java code on the server's machine, but still may provide access to files owned by the user that started the network server. 3) Do 1) and 2) Allow a boot of an unauthenticated server only listening on localhost and install a security manager. Potentially reduces the harm a user on the same machine could do. Dan.