Re: [jose] Stephen Farrell's Discuss on draft-ietf-jose-json-web-key-33: (with DISCUSS and COMMENT)

Mike Jones <Michael.Jones@microsoft.com> Wed, 08 October 2014 00:48 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8ECA21A8ABD; Tue, 7 Oct 2014 17:48:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 z8oIAgAcrok6; Tue, 7 Oct 2014 17:48:15 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0129.outbound.protection.outlook.com [207.46.100.129]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 747961A8AC8; Tue, 7 Oct 2014 17:48:15 -0700 (PDT)
Received: from BN3PR0301CA0060.namprd03.prod.outlook.com (25.160.152.156) by DM2PR0301MB1214.namprd03.prod.outlook.com (25.160.219.155) with Microsoft SMTP Server (TLS) id 15.0.1044.10; Wed, 8 Oct 2014 00:48:13 +0000
Received: from BN1BFFO11FD045.protection.gbl (2a01:111:f400:7c10::1:108) by BN3PR0301CA0060.outlook.office365.com (2a01:111:e400:401e::28) with Microsoft SMTP Server (TLS) id 15.0.1049.19 via Frontend Transport; Wed, 8 Oct 2014 00:48:13 +0000
Received: from mail.microsoft.com (131.107.125.37) by BN1BFFO11FD045.mail.protection.outlook.com (10.58.145.0) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Wed, 8 Oct 2014 00:48:13 +0000
Received: from TK5EX14MBXC286.redmond.corp.microsoft.com ([169.254.1.93]) by TK5EX14MLTC104.redmond.corp.microsoft.com ([157.54.79.159]) with mapi id 14.03.0210.003; Wed, 8 Oct 2014 00:47:35 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Barry Leiba <barryleiba@computer.org>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Thread-Topic: [jose] Stephen Farrell's Discuss on draft-ietf-jose-json-web-key-33: (with DISCUSS and COMMENT)
Thread-Index: AQHP3jI0y2YQdh1++ku2NamIZ5KlrpwiPARQgAFPwQCAAAGVAIAADBaAgAAB+ACAAAMNgIAAAq0AgAA3FFCAABWNAIAAAScggACEiYCAACB4gIAAAjAQgAA+RICAAIpOIA==
Date: Wed, 08 Oct 2014 00:47:34 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439BAF5B05@TK5EX14MBXC286.redmond.corp.microsoft.com>
References: <20141002111501.6046.52416.idtracker@ietfa.amsl.com> <4E1F6AAD24975D4BA5B16804296739439BAF0C1E@TK5EX14MBXC286.redmond.corp.microsoft.com> <00c601cfe1a4$15d32900$41797b00$@augustcellars.com> <7ABF79CB-61C8-490B-A727-465530222F0B@nominum.com> <00dd01cfe1aa$eba7db10$c2f79130$@augustcellars.com> <54330888.4090605@cs.tcd.ie> <00f101cfe1ad$6dc9fea0$495dfbe0$@augustcellars.com> <54330D56.507@cs.tcd.ie> <4E1F6AAD24975D4BA5B16804296739439BAF2783@TK5EX14MBXC286.redmond.corp.microsoft.com> <011b01cfe1d5$17f6d610$47e48230$@augustcellars.com> <4E1F6AAD24975D4BA5B16804296739439BAF321C@TK5EX14MBXC286.redmond.corp.microsoft.com> <5433BDC3.2050404@cs.tcd.ie> <CALaySJ+cDNPGc6orsJqwnhx-p3puRH_q1E4=vx0Vcodv-Npz+Q@mail.gmail.com> <4E1F6AAD24975D4BA5B16804296739439BAF4627@TK5EX14MBXC286.redmond.corp.microsoft.com> <CALaySJLEPU0TifJ6j5o66gD_=kxefoKzPzo-LYz5NutSF0pZ3A@mail.gmail.com>
In-Reply-To: <CALaySJLEPU0TifJ6j5o66gD_=kxefoKzPzo-LYz5NutSF0pZ3A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.33]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(438002)(199003)(51704005)(189002)(13464003)(377454003)(19580395003)(50986999)(86362001)(68736004)(99396003)(19580405001)(44976005)(76482002)(33656002)(69596002)(6806004)(76176999)(120916001)(54356999)(84676001)(92566001)(85852003)(95666004)(26826002)(21056001)(55846006)(50466002)(86612001)(92726001)(97736003)(85806002)(104016003)(31966008)(107046002)(4396001)(106116001)(77096002)(106466001)(23726002)(81156004)(46102003)(2656002)(47776003)(97756001)(85306004)(87936001)(46406003)(230783001)(64706001)(20776003)(66066001)(93886004)(80022003); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB1214; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-Microsoft-Antispam: UriScan:;
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1214;
X-O365ENT-EOP-Header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 0358535363
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com; client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com;
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/RAcrut6Zt_Y4ZatfcJWVyvLtuFQ
Cc: "jose-chairs@tools.ietf.org" <jose-chairs@tools.ietf.org>, Jim Schaad <ietf@augustcellars.com>, Ted Lemon <Ted.Lemon@nominum.com>, "jose@ietf.org" <jose@ietf.org>, "draft-ietf-jose-json-web-key@tools.ietf.org" <draft-ietf-jose-json-web-key@tools.ietf.org>, The IESG <iesg@ietf.org>
Subject: Re: [jose] Stephen Farrell's Discuss on draft-ietf-jose-json-web-key-33: (with DISCUSS and COMMENT)
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Oct 2014 00:48:17 -0000

> -----Original Message-----
> From: barryleiba@gmail.com [mailto:barryleiba@gmail.com] On Behalf Of Barry
> Leiba
> Sent: Tuesday, October 07, 2014 9:05 AM
> To: Mike Jones
> Cc: Stephen Farrell; Jim Schaad; Ted Lemon; jose-chairs@tools.ietf.org; draft-
> ietf-jose-json-web-key@tools.ietf.org; The IESG; jose@ietf.org
> Subject: Re: [jose] Stephen Farrell's Discuss on draft-ietf-jose-json-web-key-33:
> (with DISCUSS and COMMENT)
> 
> > This brings me back around to wondering why just saying that Key ID
> > values are case sensitive strings is not enough, and leaving it up to
> > applications how to choose the contents of those case-sensitive
> > strings?
> 
> Yes, that's fine, if that's adequate for the situation.

Yes, I believe that this is adequate to the situation, especially since the party generating the key is also extremely likely to be the one generating the Key ID value for the key, and publishing it when needed.  Parties receiving the key and the Key ID will use and compare these values literally - not interpret them in any way.

> Remember that this all came
> from what's in the documents now, with statements such as this (from JWT,
> Sections 5.1 and 5.2):
> 
>    While media type names are not case-sensitive,
>    it is RECOMMENDED that "JWT" always be spelled using uppercase
>    characters for compatibility with legacy implementations.  Use of
>    this Header Parameter is OPTIONAL.
> 
> That violates the "always case sensitive" rule, and requires that you deal with
> comparisons and/or normalization.

The real rule is "always case sensitive unless otherwise specified".  I think the right fix is to be clear on that point.  Stephen and Barry, can I proceed on that basis and have you review the proposed edits?

> If you just say that everything is case sensitive, or REQUIRE those strings to be
> case-normalized, that addresses the problem.

Per my comments above, no normalization should be necessary since the Key ID values are extremely likely to be published by the party publishing the key and used literally by parties using the key.  Different parties would never be generating Key ID values and seeing if they match.

I'll also note that MIME Media Type values are the only values that have case-insensitive portions in any of the 5 specs and that per RFC 2045, MIME Media Type values are restricted to a subset of ASCII Characters - so there's nothing difficult about doing case-insensitive comparisons of them.  None of the Unicode weirdness can happen.

> Barry

				-- Mike