Re: [Webpush] Use Case related to subscription sets

Martin Thomson <martin.thomson@gmail.com> Mon, 23 November 2015 18:16 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D4971ACCF4 for <webpush@ietfa.amsl.com>; Mon, 23 Nov 2015 10:16:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B5uRn5kDu6AA for <webpush@ietfa.amsl.com>; Mon, 23 Nov 2015 10:16:45 -0800 (PST)
Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 863ED1ACCF0 for <webpush@ietf.org>; Mon, 23 Nov 2015 10:16:45 -0800 (PST)
Received: by igbxm8 with SMTP id xm8so63077945igb.1 for <webpush@ietf.org>; Mon, 23 Nov 2015 10:16:45 -0800 (PST)
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 :cc:content-type:content-transfer-encoding; bh=Gnp9Alo+G77FP7Sckk15SCErohKEWER9eJcPBtSase8=; b=Cs7H0o0duJ3YTiwEW5oFNbrzPcXq2EojUmAWPFoKx9Wmrfa0tx1kyAVGG9wIhAV6K3 eUc97C9s6zFDfE1jYOvfd/EC13Gr3CBXktu8dii0B6BSSDe4d77RRvVZF+Fqg2+Bx2c6 pKWH4Nwr2FhhH8aUfP7u1+eRJHXeBs+ZwOLKw/D8o10eyaImO+0++H6zU1gwdAnNk13a 5sag+3pQ7bMrtFBDVGgDIgVEIr2c1aJoAYYxwFRLpektoXvDijOOCj56aHpzhcbfMULb Djo5XMVF9bazKy1GTpiAP3nZiiLOP1DIcZqqqTqp+bYAPtnLlOsjlygweZlPiIuheLaS DxAg==
MIME-Version: 1.0
X-Received: by 10.50.183.11 with SMTP id ei11mr16097338igc.94.1448302604933; Mon, 23 Nov 2015 10:16:44 -0800 (PST)
Received: by 10.36.155.139 with HTTP; Mon, 23 Nov 2015 10:16:44 -0800 (PST)
In-Reply-To: <CABp8EuKoWQ+JJdbqcTAge7wK=69P4M-e9kSZjoRW04yYvardUw@mail.gmail.com>
References: <564C50B7.7070505@crf.canon.fr> <CABp8EuLXNQWmc0mnt-m_vBQhPuhhef5GDgbrZdyM8TKUZv+GxQ@mail.gmail.com> <564EF895.4020200@crf.canon.fr> <CABp8Eu+OsXiEAsxOQpV_O-bF2o21upbJ14x8bCO=Y9TfgXOw2A@mail.gmail.com> <BY2PR0301MB06474FB76B480F37957A531A831A0@BY2PR0301MB0647.namprd03.prod.outlook.com> <5652E2CD.8090709@crf.canon.fr> <CABp8EuKoWQ+JJdbqcTAge7wK=69P4M-e9kSZjoRW04yYvardUw@mail.gmail.com>
Date: Mon, 23 Nov 2015 10:16:44 -0800
Message-ID: <CABkgnnWkWt1=styBxLV6GiZ+D7kcryP3-2gm82T1b-Rv-UuF-g@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Benjamin Bangert <bbangert@mozilla.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/kliOUa4VEw_mJLp8mbS_aaROAlk>
Cc: Brian Raymor <brian.raymor@microsoft.com>, "webpush@ietf.org" <webpush@ietf.org>, Hervé Ruellan <herve.ruellan@crf.canon.fr>
Subject: Re: [Webpush] Use Case related to subscription sets
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol <webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>, <mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>, <mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Nov 2015 18:16:47 -0000

As Ben says here, I think that the question of limits is something
that is specific to a service.  The concurrent stream limit is a valid
way of limiting load, certainly.

However, I don't think that it makes the problem go away.  It's a
second order solution in the sense that it attempts to address the
consequences of bad behaviour.  I would rather have a service reject
attempts to create unlinked subscriptions.

An explicit link between subscriptions isn't that hard to do.  I've
created a pull request that illustrates how simple it would be to
accommodate Hervé's request.

https://github.com/webpush-wg/webpush-protocol/pull/67

On 23 November 2015 at 09:31, Benjamin Bangert <bbangert@mozilla.com> wrote:
> On Mon, Nov 23, 2015 at 1:56 AM, Hervé Ruellan <herve.ruellan@crf.canon.fr>
> wrote:
>>
>>
>> On 20/11/15 18:49, Brian Raymor wrote:
>>>
>>>
>>> On Fri, Nov 20, 2015 at 8:43 AM, Benjamin Bangert
>>> <bbangert@mozilla.com> wrote:
>>> > Since most push servers, as far as I know, will be using SSL, I
>>> don't know how a proxy could even function
>>> > since it would need to MITM the secured connection which is
>>> obviously not good.
>>>
>>> The mobile phone ("proxy") acts as the user agent in this case with a
>>> HTTPS connection to the push service. A different protocol than HTTP
>>> may be required between phone and the camera. Sounds similar to a
>>> field gateway scenario?
>>
>>
>> Yes, the HTTPS connection is between the mobile phone and the push server.
>> And another protocol is used between the camera and the phone.
>>
>>> > Either way, this situation and use-case seems accounted for by the
>>> spec as it is, since those wishing to handle
>>> > this scenario may run their own Push Server without a low concurrent
>>> stream max, and unsecured so that a
>>> > proxy may function.
>>>
>>> Regarding "unsecured", Section 9 requires HTTPS - This protocol MUST
>>> use HTTP over TLS [RFC2818].
>>
>>
>> For our scenario, we would like to be able to use a generic push server. I
>> agree that the spec supports the use-case, but we would also like the
>> implementations to support the use-case.
>> A short mention of the use-case in the spec would be really helpful. The
>> consequences for an implementation would be to allow a user agent to create
>> a *few* subscription sets, and not limit it to *1*, and also to allow a user
>> agent to open a *few* streams to subscription resources.
>
>
> Implementation-wise, the only reason a client using our service is
> restricted to one active subscription set at a time is due to the concurrent
> stream limit setting. It is however, just that, a setting.
>
> Someone could use our eventual implementation and set the stream limit
> setting to whatever they want to support at scale. Our specific deployment
> will restrict our clients to 2 concurrent streams via this setting.
>
> I'm assuming there will be multiple implementations out there to choose from
> if you don't want to implement your own, and many/most of them will likely
> implement the ability to restrict subscription sets in a similar manner...
> merely by setting a config flag.
>
> Cheers,
> Ben
>
> _______________________________________________
> Webpush mailing list
> Webpush@ietf.org
> https://www.ietf.org/mailman/listinfo/webpush
>