[jose] Should we keep or remove the JOSE JWS and JWE MIME types?

Mike Jones <Michael.Jones@microsoft.com> Wed, 19 June 2013 01:42 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D61821F9B1B for <jose@ietfa.amsl.com>; Tue, 18 Jun 2013 18:42:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.498
X-Spam-Level:
X-Spam-Status: No, score=-2.498 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y8io83zVmrol for <jose@ietfa.amsl.com>; Tue, 18 Jun 2013 18:42:05 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0240.outbound.protection.outlook.com [207.46.163.240]) by ietfa.amsl.com (Postfix) with ESMTP id DAFDA21F9B1A for <jose@ietf.org>; Tue, 18 Jun 2013 18:42:04 -0700 (PDT)
Received: from BN1BFFO11FD009.protection.gbl (10.58.52.203) by BN1BFFO11HUB006.protection.gbl (10.58.53.116) with Microsoft SMTP Server (TLS) id 15.0.707.0; Wed, 19 Jun 2013 01:26:06 +0000
Received: from TK5EX14MLTC103.redmond.corp.microsoft.com (131.107.125.37) by BN1BFFO11FD009.mail.protection.outlook.com (10.58.53.69) with Microsoft SMTP Server (TLS) id 15.0.707.0 via Frontend Transport; Wed, 19 Jun 2013 01:26:06 +0000
Received: from TK5EX14MBXC283.redmond.corp.microsoft.com ([169.254.2.25]) by TK5EX14MLTC103.redmond.corp.microsoft.com ([157.54.79.174]) with mapi id 14.03.0136.001; Wed, 19 Jun 2013 01:26:05 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "jose@ietf.org" <jose@ietf.org>
Thread-Topic: Should we keep or remove the JOSE JWS and JWE MIME types?
Thread-Index: Ac5si+PCJyNtJjwFQ3SCQ8Y9W8ChrQ==
Date: Wed, 19 Jun 2013 01:26:04 +0000
Message-ID: <4E1F6AAD24975D4BA5B1680429673943678735D4@TK5EX14MBXC283.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.76]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B1680429673943678735D4TK5EX14MBXC283r_"
MIME-Version: 1.0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(199002)(51444003)(189002)(54356001)(31966008)(74366001)(77096001)(512954002)(81342001)(66066001)(81542001)(76786001)(69226001)(74706001)(74502001)(63696002)(49866001)(74662001)(47446002)(46102001)(56776001)(51856001)(65816001)(74876001)(55846006)(15202345002)(50986001)(76796001)(77982001)(76482001)(33656001)(47976001)(79102001)(56816003)(16406001)(6806003)(54316002)(20776003)(53806001)(4396001)(80022001)(71186001)(59766001)(16236675002)(47736001)(76176001)(217873001); DIR:OUT; SFP:; SCL:1; SRVR:BN1BFFO11HUB006; H:TK5EX14MLTC103.redmond.corp.microsoft.com; CLIP:131.107.125.37; RD:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-OriginatorOrg: microsoft.onmicrosoft.com
X-O365ENT-EOP-Header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 08828D20BC
Subject: [jose] Should we keep or remove the JOSE JWS and JWE MIME types?
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
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, 19 Jun 2013 01:42:12 -0000

The JWS and JWE documents currently define these MIME types for the convenience of applications that may want to use them:
                application/jws
                application/jws+json
                application/jwe
                application/jwe+json

That being said, I'm not aware of any uses of these by applications at present.  Thus, I think that makes it fair game to ask whether we want to keep them or remove them - in which case, if applications ever needed them, they could define them later.

Another dimension of this question for JWS and JWE is that it's not clear that the four types application/jws, application/jws+json, application/jwe, and application/jwe+json are even the right ones.  It might be more useful to have generic application/jose and application/jose+json types, which could hold either JWS or JWE objects respectively using the compact or JSON serializations (although I'm not advocating adding them at this time).

Having different JWS versus JWE MIME types apparently did contribute to at least Dick's confusion about the purpose of the "typ" field, so deleting them could help eliminate this possibility of confusion in the future.  Thus, I'm increasingly convinced we should get rid of the JWS and JWE types and leave it up to applications to define the types they need, when they need them.

Do people have use cases for these four MIME types now or should we leave them to future specs to define, if needed?

                                                                -- Mike

P.S.  For completeness, I'll add that the JWK document also defines these MIME types:
                application/jwk+json
                application/jwk-set+json

There are already clear use cases for these types, so I'm not advocating deleting them, but wanted to call that out explicitly.  For instance, when retrieving a JWK Set document referenced by a "jku" header parameter, I believe that the result should use the application/jwk-set+json type.  (In fact, I'll add this to the specs, unless there are any objections.)  Likewise, draft-miller-jose-jwe-protected-jwk-02 already uses application/jwk+json.  Both could also be as "cty" values when encrypting JWKs and JWK Sets, in contexts where that that would be useful.