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

Richard Barnes <rlb@ipv.sx> Thu, 20 June 2013 20:52 UTC

Return-Path: <rlb@ipv.sx>
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 4AC5A21F9FFD for <jose@ietfa.amsl.com>; Thu, 20 Jun 2013 13:52:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.529
X-Spam-Level: *
X-Spam-Status: No, score=1.529 tagged_above=-999 required=5 tests=[AWL=0.172, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_NONE=0.1]
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 UHGXb9cHJ9+a for <jose@ietfa.amsl.com>; Thu, 20 Jun 2013 13:52:43 -0700 (PDT)
Received: from mail-oa0-x230.google.com (mail-oa0-x230.google.com [IPv6:2607:f8b0:4003:c02::230]) by ietfa.amsl.com (Postfix) with ESMTP id EF23F11E80D3 for <jose@ietf.org>; Thu, 20 Jun 2013 13:52:40 -0700 (PDT)
Received: by mail-oa0-f48.google.com with SMTP id f4so8486855oah.35 for <jose@ietf.org>; Thu, 20 Jun 2013 13:52:40 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=n0PldZvzEDFvcbr2PimFdBrTwrojrr98EA0NAph1ClQ=; b=Ez/gBqBKP9BZKByUqqt4qWlVPSRPf9LtpWEb8lE2/CvHlXhHnnyyLiEVmKrU7TrwnW nWUYg3yrwJKj+BYcaHldZtIapKgJfFOKmMB2d4Wp3MybveW5qp50CenpHuj+qAO9wGGp 9uL3CV38Fy8Z6S5QY9MupZWtQrmZygwY22+YcGlZOtmzCPDVr6FzfKtwCdezGTCF8Drk DEBDW5W1ajlV/I32lK1wbuQmse3un1+q9i08dTluKHvBdl+uQ7ONIEpB6QkPEXJpM+KM ru0pSh+SyCQTKK5/0j/fZXF8YCDzxjGQnGNzcQejdMu+CHlFgrsDkEloy3B3xX3p2rWB k3mA==
MIME-Version: 1.0
X-Received: by 10.60.144.233 with SMTP id sp9mr5213246oeb.53.1371761560330; Thu, 20 Jun 2013 13:52:40 -0700 (PDT)
Received: by 10.60.26.135 with HTTP; Thu, 20 Jun 2013 13:52:40 -0700 (PDT)
X-Originating-IP: [108.18.40.68]
In-Reply-To: <CA+k3eCRS1Fri_fW310UKdvwBMXA1+wdxtdBBc2cnUPypQs7zBQ@mail.gmail.com>
References: <4E1F6AAD24975D4BA5B1680429673943678735D4@TK5EX14MBXC283.redmond.corp.microsoft.com> <1371760769.7926.YahooMailRC@web184402.mail.bf1.yahoo.com> <CA+k3eCRS1Fri_fW310UKdvwBMXA1+wdxtdBBc2cnUPypQs7zBQ@mail.gmail.com>
Date: Thu, 20 Jun 2013 16:52:40 -0400
Message-ID: <CAL02cgRkQEkuvLJqmZ-NQKE6ET4J1zN2FUT018+FgLjEsa8aFg@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Brian Campbell <bcampbell@pingidentity.com>
Content-Type: multipart/alternative; boundary="047d7b3a8b6685333404df9c20ca"
X-Gm-Message-State: ALoCoQmHn/Ktng5pTJdq/GxpTh3GRWcvSYuKt1vaj8ht7HqavOPFFYCC+6B+f5wIyZ5hwYIAHP/l
Cc: Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>, Edmund Jay <ejay@mgi1.com>
Subject: Re: [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: Thu, 20 Jun 2013 20:52:47 -0000

To be clear, when people say "dropping them", you mean "changing from four
MIME types to two", right?

Dropping the MIME types altogether is not an option, as Matt noted.

--Richard


On Thu, Jun 20, 2013 at 4:47 PM, Brian Campbell
<bcampbell@pingidentity.com>wrote:

> I'm okay dropping them.
>
>
> On Thu, Jun 20, 2013 at 2:39 PM, Edmund Jay <ejay@mgi1.com> wrote:
>
>> +1 in favor of dropping
>>
>> ------------------------------
>> *From:* Mike Jones <Michael.Jones@microsoft.com>
>> *To:* "jose@ietf.org" <jose@ietf.org>
>> *Sent:* Tue, June 18, 2013 6:42:15 PM
>> *Subject:* [jose] Should we keep or remove the JOSE JWS and JWE MIME
>> types?
>>
>>  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.
>>
>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>>
>>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>