[Webpush] Contributory behaviour fix for -encryption

Martin Thomson <martin.thomson@gmail.com> Fri, 13 November 2015 22:31 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 07D321B336D for <webpush@ietfa.amsl.com>; Fri, 13 Nov 2015 14:31:02 -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 4LbrDNtq_E-X for <webpush@ietfa.amsl.com>; Fri, 13 Nov 2015 14:31:00 -0800 (PST)
Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (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 B74091B336E for <webpush@ietf.org>; Fri, 13 Nov 2015 14:31:00 -0800 (PST)
Received: by iofh3 with SMTP id h3so111915692iof.3 for <webpush@ietf.org>; Fri, 13 Nov 2015 14:31:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GVmY1qkcZI2R9zbVDFOYpwCfxeJxN4P4uFzEgerdj/o=; b=nfIdzsMQJmaFb1liw4Ix8Fb4JVSiVmQ/hET3Ni89jGcSdeYYGQ3cqH4e7Y2Cjv1RF0 9w3xCBnKuEuDoaF9W1cw2xKegVr6Lv4i6M6d+6nYBCoHdnbSIH2zFq+tYzmYZnFCJWSL MM35qgR+ezhoOfpZphlTdUxSlGeNfvgpzaWW+jyrlrh+2/c6eXMWXexz4wM7SNle5K2A s+yxIIH75+ReHM9ASdAs7K5p+kh5LBeOnsqKkd9S9inKxG61UIIU8QDNycOTXLo3cthg 8c7IJmel8B5hr9jWzSgIuxqjRhCzsKDUyIGDYtf8cywhrGdjpz169OF5eKmf6u/GG601 wt5Q==
MIME-Version: 1.0
X-Received: by 10.107.169.29 with SMTP id s29mr24016212ioe.190.1447453860136; Fri, 13 Nov 2015 14:31:00 -0800 (PST)
Received: by 10.36.155.139 with HTTP; Fri, 13 Nov 2015 14:31:00 -0800 (PST)
Date: Fri, 13 Nov 2015 14:31:00 -0800
Message-ID: <CABkgnnU05j=z-BfKpBR+xtK-2H2pBRO3pvmBaOqZZ18FmYksRg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: "webpush@ietf.org" <webpush@ietf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/dDXoprboD40C7ViLFnnqwJElemY>
Subject: [Webpush] Contributory behaviour fix for -encryption
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: Fri, 13 Nov 2015 22:31:02 -0000

I've put together a pull request that addresses at least part of the
issue that AGL raised.

The meat of the change in the core spec, this is where you need to look:
  https://github.com/martinthomson/http-encryption/pull/4

The update to the webpush encryption spec is modest:
  https://github.com/webpush-wg/webpush-encryption/issues/3

And I've implemented the change in my library:
  https://github.com/martinthomson/encrypted-content-encoding/issues/4

Note that this doesn't deal with the authentication issue that Adam
separately identified.  That would require changes to the API.  I'll
follow up with some potential options for that.