[Webpush] Composite Crypto-Key composition issue

JR Conlin <jconlin@mozilla.com> Tue, 28 June 2016 16:24 UTC

Return-Path: <jconlin@mozilla.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 1CB8D12D54F for <webpush@ietfa.amsl.com>; Tue, 28 Jun 2016 09:24:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=mozilla-com.20150623.gappssmtp.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 kJmOGXpnMy6R for <webpush@ietfa.amsl.com>; Tue, 28 Jun 2016 09:24:16 -0700 (PDT)
Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (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 DA99512D54C for <webpush@ietf.org>; Tue, 28 Jun 2016 09:24:16 -0700 (PDT)
Received: by mail-oi0-x22b.google.com with SMTP id u201so30180501oie.0 for <webpush@ietf.org>; Tue, 28 Jun 2016 09:24:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla-com.20150623.gappssmtp.com; s=20150623; h=mime-version:reply-to:from:date:message-id:subject:to; bh=SWL8B1P9gPquYNnExgiIQyNUXcBvL2sw+xv3udEEyYY=; b=FLs9+3ChxAwzeUHJVNn7rTQTM01xyoBIUf1taGy/Y0GrF3izMY3oP+afYIZFu9WYKd rbsYTYuEtrZLuWdKDboDmTbvRrwTNOxV0wNO1875txLt753BEpNUNusZupPL/wTuWDPK P8lMnXLkpMkK5b2WobZLxb6rTW/nOTWZfDGtRBOKweW4YqYvycpt7Itb7b9DgFYQlV91 PyA+jrhN6MdpDlRP5UujdspOYUeNqROo3iDFURG9qPQo+ZHX+wTD07LK4M1/9uz1pZxv hUtiaF7SrjjWGjN1F64gXB3hYDkl2FokwYwOniseAcFbMU3TBR7R2DaOJi/k8KxhPfIM pTMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=SWL8B1P9gPquYNnExgiIQyNUXcBvL2sw+xv3udEEyYY=; b=L25elRNGaqXciRqQlpG/uLYpsBOftYqAv0j9X825lUwNYATX5z3sNZEMSfUijoC+Tp VuTEhYvzCTnhl2tFonCjw5c3OXu5dihc+s6CUtGs0eusaKpO4nSBAi1dIyaV2Kt1G99g tiBtWYUTNEBmIg52Vb2ZPk5IJWE/uUc9OYl6KOHNa/f2urBAkKfVZkx+pk6WNOuXchz1 oERExrb411fOsJ9NnAd7tV1d3ogHdFi/O8HCyzbq7GttelYWcL7EXlmmq20h0J2Kz8ZZ TXIasVUePg0tPYRbRv8Fkz/oYWb0QF9j7xSJly9FVIZ3R56Ti2FKrw7ngkd8Ybx6/Rj5 fUJw==
X-Gm-Message-State: ALyK8tKfLbnNLcpSBs2FBUeVTkT8SJ3B4gYZiNysPJ7pWLTfomWDU0fy82hDRu/DPeoJ+JPordjZFzR6BptAnOQj
X-Received: by 10.202.196.139 with SMTP id u133mr2654928oif.147.1467131056141; Tue, 28 Jun 2016 09:24:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.157.45.201 with HTTP; Tue, 28 Jun 2016 09:24:15 -0700 (PDT)
From: JR Conlin <jconlin@mozilla.com>
Date: Tue, 28 Jun 2016 09:24:15 -0700
Message-ID: <CA+XEteOKrw9ANikCFcd1JETT+i0JFeXmzA1vnoA2vUfrw5ZvTg@mail.gmail.com>
To: "webpush@ietf.org" <webpush@ietf.org>
Content-Type: multipart/alternative; boundary="001a113e25fe70ee2b053659112b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/webpush/aKKTmHNVsB3ib_SRHdQei2uB8As>
Subject: [Webpush] Composite Crypto-Key composition issue
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: jrconlin@mozilla.com
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, 28 Jun 2016 16:24:19 -0000

I believe there may be some confusion about how to create a composite
Crypto-Key header.

The Crypto-Key Header is used by several supporting protocols of WebPush
(ECE, VAPID). The respective specifications state that the field uses RFCs
7230 & 7231 where each parameter list set is divided by commas, and each
individual parameter is divided by a semicolon.

The confusion arises in whether or not each list set should contain items
specific for a given sub-protocol.

For instance, our autopush server treats ECE and VAPID as separate entities
and divides the set containing the dh= parameter from the set containing
p256ecdsa=. It's my understanding that FCM does not follow this practice
and will generate an error if a "," appears in the Crypto-Key parameter
lists.

Since this is a point of confusion and conflict, I believe it would be in
the best interests of all if this was addressed in some manner so that
future conflict and confusion can be avoided.

(For what it's worth, I really don't care what the answer is; keep protocol
parameter sets distinct to avoid potential future conflicts or combine all
parameters into one big ol' hash. Just want to prevent future folk from
swearing at us.)