Re: [Webpush] Receipt subscription follow-up

Costin Manolache <costin@gmail.com> Tue, 26 April 2016 05:22 UTC

Return-Path: <costin@gmail.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B6EAA12B039 for <webpush@ietfa.amsl.com>; Mon, 25 Apr 2016 22:22:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 nlaojVSzfuQH for <webpush@ietfa.amsl.com>; Mon, 25 Apr 2016 22:22:58 -0700 (PDT)
Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 51F6C12B017 for <webpush@ietf.org>; Mon, 25 Apr 2016 22:22:58 -0700 (PDT)
Received: by mail-ig0-x230.google.com with SMTP id u10so31949967igr.1 for <webpush@ietf.org>; Mon, 25 Apr 2016 22:22:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fY4FN2LWMWBtZLXXGThmCyvNa24KuBAc6N3hotsVFRg=; b=F1zgAyrYlT263LC+ABm32wjZOrVKd+8DxJwKM6gFdB42Z04KebTig1U9kESXhOD6RF jQnGyVFOV0CxmrSvodAML2O6KjKPd//nOGwnQWS7nxZFEjsDFT59RsvlgO4AznsthYjL IY/4u2grIumHvWu8ktMM4MCZE0UFPVRPi+VHa4hvg+O51ZMQ+r2sQEYnzLdkUFZeO6aj IvVrbfDM0LHRvlfRp/i97ckViWa5+738sUUtNZ7uu59n67grPQ/2Kbo0dIgaWN8+yT43 hZCnt+53f7xMC5OYqQQyJVQh4suWqN/dG3Y4v6XdStTA9Hy/7YMKatRm8hUuC4jfCZNX TB4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fY4FN2LWMWBtZLXXGThmCyvNa24KuBAc6N3hotsVFRg=; b=CjGk8DVAcEQI8wXvp3kkB1VptoiXH9N3X5U5ajFyslrmOgVXF/7ZPo/ecqkoKy1/H+ QNdIZQITTLGajMUFSrCtvAJ0JtPMBJLB1DgSVtgRh6RMOV9ADnRGNrRCcMbc2e0Jl/XL zCjU+mwSdw6ia2xH2Qv+xLJ8aByVR+LzIXQaVfT0Y374iwr62jKEk71/Vf3D2f3OWOU3 6qoLD/F4DueGCWUyJUpPSNw0/TovoChk5fNqEQNZd5W0RtfODgMgWCflhq9PqJuoXGEH PFxCQ3hvBJIEE1jqifuSLSUOMKEilH8VxfhKEcdtZZCEVl3RqoH1C0efMzHFHsrIuZxT 4FSg==
X-Gm-Message-State: AOPr4FVJkMbhOavekSYlGZJqJwvybq804xBCW0C7vBu6IIs9NLJqfQBLVB5TYMaVhyi/LgPsyT+CS7WsijAFZQ==
X-Received: by 10.50.141.193 with SMTP id rq1mr16853369igb.39.1461648177709; Mon, 25 Apr 2016 22:22:57 -0700 (PDT)
MIME-Version: 1.0
References: <CABkgnnXKDZvLWxkhFP0R4jW=ZyFwqiqQREFA5BFKH9i4PQCmyA@mail.gmail.com> <CAP8-Fq=Oi_kGebcRsyHYQdXWwLxFQxFwR=jeOyKS-+vW7eE=0w@mail.gmail.com> <CABkgnnX35n3K=cGTC2EvwG3=w6X7uWCikw+QFqhO7-RiLV8zJQ@mail.gmail.com> <CAP8-FqmcguLQaVxeNs1ROAG0XEBgYNtDiJ3+sYUcxmRrFfou1Q@mail.gmail.com>
In-Reply-To: <CAP8-FqmcguLQaVxeNs1ROAG0XEBgYNtDiJ3+sYUcxmRrFfou1Q@mail.gmail.com>
From: Costin Manolache <costin@gmail.com>
Date: Tue, 26 Apr 2016 05:22:48 +0000
Message-ID: <CAP8-Fqnd4uwcSkfTFuNqpLH0dXABJ_jTTLTd2YtwFG30bYZHaw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: multipart/alternative; boundary=089e013cbd686b4c4205315c7ca6
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/Xdbf6NSogYU8QCnNWENvkB7yBc8>
Cc: "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Receipt subscription follow-up
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.17
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: Tue, 26 Apr 2016 05:22:59 -0000

Reading more closely - I think it is fine, the PS is free to return a
different receipt URI, regardless
of what is included.
So a PS requiring VAPID can just return the same URL, based on VAPID.

Costin

On Mon, Apr 25, 2016 at 10:18 PM Costin Manolache <costin@gmail.com> wrote:

> You mean an AS having multiple instances would use a different
> receipt set for each instance ? That may be problematic for many
> reasons - like load balancing, queuing, AS server restarts.
>
> I would expect most PS will want to be able to load balance across
> multiple connections from AS, and deliver receipts locally, i.e. if a
> device is in EU to use AS connections in EU (if the AS has connections
>  in different regions). And if an AS instance restarts, receipts would
> go to the remaining.
>
> Costin
>
>
>
> On Mon, Apr 25, 2016 at 10:03 PM Martin Thomson <martin.thomson@gmail.com>
> wrote:
>
>> On 26 April 2016 at 14:47, Costin Manolache <costin@gmail.com> wrote:
>> > Seems reasonable - but it should be optional if an App Server is using
>> > VAPID,
>> > since the push service can simply use the VAPID public key, and it
>> > simplifies the
>> > AS logic.
>>
>> I was talking primarily about what the application server has to do to
>> decide what to send.
>>
>> If this were solely rate limiting, I'd agree.  The choice to send 429
>> can definitely use the token.  The problem is if there are multiple
>> application server instances and the push service decides to send the
>> same subscription back to two different instances, then things might
>> break.  The inclusion of the receipt subscription in the request is
>> permission to merge receipts.  The push service shouldn't merge
>> receipt subscriptions without permission.
>>
>