Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C20111738 for ; Tue, 8 Jul 2014 16:54:51 +0000 (UTC) Received: (qmail 26916 invoked by uid 500); 8 Jul 2014 16:54:50 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 26875 invoked by uid 500); 8 Jul 2014 16:54:50 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 26863 invoked by uid 99); 8 Jul 2014 16:54:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 16:54:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bowserj@gmail.com designates 209.85.128.177 as permitted sender) Received: from [209.85.128.177] (HELO mail-ve0-f177.google.com) (209.85.128.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 16:54:48 +0000 Received: by mail-ve0-f177.google.com with SMTP id i13so5857716veh.8 for ; Tue, 08 Jul 2014 09:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=9z4a5ddbKPr9OOhKZS9FSjLB7FPy9tqIUMoKZKXeGM8=; b=o0QDt5eZaHsnpOpoJehvvoQP8U+ZtQPgNWqRToVnTiiKlvw73avb/N1K5dUgyQxngw ppvwLu67xlm3HLjIIvmTf3RYkik8oq4EpA1agQ1DpX2MQUmtN1aZInFCl4nXNo7Hskuf fbAzjvDN5pERw8XUbYgXF6UU/bszMYoJBsMM2JHezc9pXjZjYKH96es/rg9XMb+f5+Zy PkAgQyoBK4/e08A3r8JL2R6mNV0+wt3lfzeisMSAkmr3qQwNH8yZJgpIcdyLqOPTZZCs Ccj5Smz4vB+IvZbnfbvt5lRZaZfeZSZT4py2gpeHCyLXojp8O4V87EVkCbGFVWKtxR3N yxjQ== MIME-Version: 1.0 X-Received: by 10.58.30.35 with SMTP id p3mr34524943veh.25.1404838463460; Tue, 08 Jul 2014 09:54:23 -0700 (PDT) Received: by 10.220.241.208 with HTTP; Tue, 8 Jul 2014 09:54:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Jul 2014 09:54:23 -0700 Message-ID: Subject: Re: whitelist as a plugin From: Joe Bowser To: dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm in agreement with Andrew on this one. If we can get CSP working, that's a far better solution than our Whitelist, which was done because it was needed at the time for the enterprise use case that IBM had. I don't think we're ever going to stop are users from doing dumb things like including thirdpartyadnetworkthatdoesnoteusehttps.js in their apps any time soon, but they'll have to jump through more hoops to do dumb things, and making dumb things harder is a good thing. On Tue, Jul 8, 2014 at 9:47 AM, Brian LeRoux wrote: > Heh. Why do we always seem to be at the opposite end of considerations? > (Not a bad thing anyhow. ;) > > So making whitelist a plugin would most certainly isolate the code which > would help us better understand: > > 1.) where the surface for bugs are (we seem to miss/find new security hol= es > each quarter=E2=80=A6) > 2.) if people actually use it > > I'm more interested in #2. I suspect the only people whom do use it are > security researchers disproving the whitelist veracity. I feel this API w= as > a mistake, is misleading, and ultimately leads to poor web security > practices wrt 3rd part scripts. I'd like the evidence to remove it > completely and making it a plugin would do that. (And still allow for its > existence to those whom want to contribute to a "marketing" based api.) > > > > On Tue, Jul 8, 2014 at 6:52 AM, Andrew Grieve wrot= e: > >> I don't think moving the whitelist to a plugin would aid in its >> understanding. Right now the whitelist is used for two things: >> >> 1. Whether to allow network requests through (although this is broken fo= r >>