Re: [secdir] sector review of draft-ietf-jose-jwk-thumbprint-05

Mike Jones <Michael.Jones@microsoft.com> Thu, 11 June 2015 21:25 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 406E61ABB1A; Thu, 11 Jun 2015 14:25:26 -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 CeXQqY84zBRX; Thu, 11 Jun 2015 14:25:24 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0130.outbound.protection.outlook.com [207.46.100.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4C2F21A8869; Thu, 11 Jun 2015 14:25:24 -0700 (PDT)
Received: from BY2PR03MB444.namprd03.prod.outlook.com (10.141.141.154) by BY2PR03MB508.namprd03.prod.outlook.com (10.141.143.27) with Microsoft SMTP Server (TLS) id 15.1.184.17; Thu, 11 Jun 2015 21:25:24 +0000
Received: from BY2PR03MB442.namprd03.prod.outlook.com (10.141.141.145) by BY2PR03MB444.namprd03.prod.outlook.com (10.141.141.154) with Microsoft SMTP Server (TLS) id 15.1.195.6; Thu, 11 Jun 2015 21:25:22 +0000
Received: from BY2PR03MB442.namprd03.prod.outlook.com ([10.141.141.145]) by BY2PR03MB442.namprd03.prod.outlook.com ([10.141.141.145]) with mapi id 15.01.0195.005; Thu, 11 Jun 2015 21:25:22 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "Adam W. Montville" <adam.w.montville@gmail.com>, The IESG <iesg@ietf.org>, "secdir@ietf.org" <secdir@ietf.org>, "draft-ietf-jose-jwk-thumbprint.all@ietf.org" <draft-ietf-jose-jwk-thumbprint.all@ietf.org>
Thread-Topic: sector review of draft-ietf-jose-jwk-thumbprint-05
Thread-Index: AQHQogJgaphBjlti2Uu758g0GQEF3p2nztYw
Date: Thu, 11 Jun 2015 21:25:22 +0000
Message-ID: <BY2PR03MB442BD780448D808BA10D657F5BC0@BY2PR03MB442.namprd03.prod.outlook.com>
References: <A1BD2DB0-A7D9-4635-8A3B-074303AF2E55@gmail.com>
In-Reply-To: <A1BD2DB0-A7D9-4635-8A3B-074303AF2E55@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;
x-originating-ip: [2001:4898:80e0:ee43::6]
x-microsoft-exchange-diagnostics: 1; BY2PR03MB444; 5:d9Ho590BsYK5Qe32G3meUj+fWL+1noc4EBJZBPT858zyApvFD7nDFmeF6NZTxvxXqKswewpdaedCo04mhB3UHu2qd+V/tu0Sbsfnv7kkWdUXZikTtv+w5Nw/wrdzWcAFo+tY2Z+halFvL+DK5E95ow==; 24:D1/cJGrZQrW8SuDG5bW+hAZy+X3+gjHGJ2bJeggWRKa/Xqfv+uyIazK+Vis4+so2M5YK1lVDJ54CFzYsM7D8X77S3YmBJVrZ183f/qL95xU=; 20:8ddfMdLv9wvj4/89snG7e+9GKR8vUDXJHV41D6B8MKNTlaWjjtukdhNyxCmfrOtBKr6z4PfkH7b27ScQHZ8Gwg==
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB444; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB508;
x-microsoft-antispam-prvs: <BY2PR03MB4449707B74F288BCFB3319AF5BC0@BY2PR03MB444.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401001)(5005006)(3002001); SRVR:BY2PR03MB444; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB444;
x-forefront-prvs: 0604AFA86B
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(43784003)(71364002)(51704005)(5003600100002)(2900100001)(92566002)(2950100001)(77096005)(62966003)(77156002)(5001960100002)(2201001)(46102003)(230783001)(86612001)(99286002)(86362001)(2501003)(40100003)(15975445007)(2656002)(19580405001)(19580395003)(54356999)(5002640100001)(122556002)(76176999)(76576001)(33656002)(50986999)(106116001)(5001770100001)(102836002)(74316001)(87936001)(189998001)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB444; H:BY2PR03MB442.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jun 2015 21:25:22.6629 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB444
X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB508; 2:V6cT3Atht8izR7pLuSuqcxNM1z/6TPHtf2fiQOMxrPHAKRFBkroX5z7500llu9st; 2:xKZVWc/13nrMdOS41H8VaZ64tRqQgWjuX3GEdKban1eOpx6+1TIL3ktLlhr015zPSfAKiUBwKeQSVDh5K3nj3eXxQpzn8IW5PxGxj7mjcp88mjK89kWF5IeS9oD35J5fV5a/KMF7ngMnHGPb2D5doQ==; 9:/lniCRXPfCAMtc/uTi/zhwoD0hCAOsW4vFG2XObCligKru5n//UoEp3Hz7vtV/QmkWfE34mS4DogD3EB7aT/aU44KgisG8jU2UEHXYcQUqSsozoNtbp26MJA46NAHfFUkzL9hEQAr+yOo2drqVz9mg==
X-OriginatorOrg: microsoft.com
Archived-At: <http://mailarchive.ietf.org/arch/msg/secdir/lq_jtZ4AVsb1WS6oKerkkMOG0JI>
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [secdir] sector review of draft-ietf-jose-jwk-thumbprint-05
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Jun 2015 21:25:26 -0000

Hi Adam,

Thanks for the secdir review.

> From: Adam W. Montville [mailto:adam.w.montville@gmail.com]
> Sent: Monday, June 08, 2015 8:46 AM
> To: The IESG; secdir@ietf.org; draft-ietf-jose-jwk-thumbprint.all@ietf.org
> Subject: sector review of draft-ietf-jose-jwk-thumbprint-05

> Hi,

> I have reviewed this document as part of the security directorate's ongoing effort to review all IETF documents being processed by the IESG. These comments were written primarily for the benefit of the security area directors. Document editors and WG chairs should treat these comments just like any other last call comments.
>
> I believe the document is ready with (potential) issues.  The “with issues” might be due to ignorance on my part.  The draft does a very good job of explaining the canonical form of a JSON Web Key that can be used for establishing a thumbprint under varying circumstances, complete with what I found to be helpful examples.
>
> The primary issue I have is that it’s unclear how relying parties are going to know which hash algorithm has been used.  The examples use SHA-256, but I’m not seeing where SHA-256 might be specified as a MUST or even a SHOULD.  Moreover, the example output ultimately shows only the Base-64 encoding of the resulting hash, which says nothing about the algorithm used to identify a key.

Earlier drafts had included fields whose names were intended to communicate the information about the hash function used - see the "jkt" field definitions in http://tools.ietf.org/html/draft-ietf-jose-jwk-thumbprint-01#section-4 - but several working group reviewers suggested that these fields were unnecessary and that the typical usage would be as "kid" (key ID) field values.  With that removal, it falls onto the application to specify the hash algorithm for its particular usage.

This isn't as bad as you might think, however, because typically the consumer of the "kid" doesn't need to know the algorithm because it won't be reproducing the computation.  It just relies on the fact that a unique key ID value was generated for the key and compares "kid" values as opaque strings to find the appropriate key.  In this usage, the producer of the key is the only party that needs to know the hash algorithm that it is using.  I hope this helps.

> Additionally, in Section 4, “JSON and Unicode Considerations” some “should”s are used, but I’m not reading them as SHOULDs.  Should they be SHOULDs?  For example, the start of the third paragraph in that section: “if new JWK members are defined that use non-ASCII member names, their definitions should specify the exact Unicode code point sequences used to represent them.”  It’s not clear to me whether this is a strong statement or just a recommendation - it seems that this draft could help the future by making stronger statements to encourage future interoperability.

For the other JOSE specifications, our chair Jim Schaad took the position that RFC 2119 keywords should be reserved for testable protocol behaviors and that other uses of the English word "should" should not use "SHOULD".  The authors followed that convention in this document.  I do understand that other authors and working groups have taken different positions in this regard.  If there are particular uses that you still feel should be changed to use RFC 2119 keywords, please call them out.

> Kind regards,
> Adam

				Thanks again!
				-- Mike