Re: [jose] JWK "use" attribute and multiple uses

Mark Watson <watsonm@netflix.com> Thu, 12 December 2013 17:17 UTC

Return-Path: <watsonm@netflix.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 934451AE363 for <jose@ietfa.amsl.com>; Thu, 12 Dec 2013 09:17:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.378
X-Spam-Level:
X-Spam-Status: No, score=-1.378 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
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 EgBq4FcYCl1K for <jose@ietfa.amsl.com>; Thu, 12 Dec 2013 09:17:21 -0800 (PST)
Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by ietfa.amsl.com (Postfix) with ESMTP id 1326C1AE059 for <jose@ietf.org>; Thu, 12 Dec 2013 09:17:20 -0800 (PST)
Received: by mail-wi0-f174.google.com with SMTP id z2so9039718wiv.1 for <jose@ietf.org>; Thu, 12 Dec 2013 09:17:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netflix.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=t/Bz65nFdMy0H7AQlT5XPpkHcieKSBfRUvKfAa2Ccww=; b=opd+TqDZtHLprXEKSrItvT4KRLFiWbu5KqyGdLOFQhTV5YVFe9eNUdmsVSCqLS5G21 D6cBIpJHv71wsZ38BD49TYCK7B1lJwxwkkd1EljGENE3f7lQF278fFUTSE0bc6wrsoTZ 9lK9AVLCyt40uqrhS56k/Or5xghQtJwVf4aW8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=t/Bz65nFdMy0H7AQlT5XPpkHcieKSBfRUvKfAa2Ccww=; b=h1bfGm/3yst60qb6nZpr3+aMngDO4nFMM+QXBdUEi7mXWVclH0mRRmE1D10cqjEaBV wR8yNeJw2XHq9lOmJbnsZ3ZfXg3wVaZnYAUDzSx3dLKhZRAqcHsmDgWh5kLw8OHVMlvG p2mKyQFexDo//61NYKIhUlPVXPhsWLGY0lDKWNKRDqgf1wix172j3kXT4FklJFmZEVRr hAJEEuVlW3dfrHSCaVuPNy5qzGeseOoU7A55AKVumgIy+WIfVh0D+DHLA2B6ht5kK3cJ 8+AiqhFR81t7FowwvMr2ug2eNU2csPzi4KPoYX9kCENYhFL1mfKgpJur03FtIg361CJ+ LGmw==
X-Gm-Message-State: ALoCoQlg+ZaibwmPgTFxxY7z8LHqMYUUER+ycBdcW/h/bbsApjxf2wHp8pKXLygCzsl64QFA9QPs
MIME-Version: 1.0
X-Received: by 10.194.21.225 with SMTP id y1mr7689764wje.60.1386868634561; Thu, 12 Dec 2013 09:17:14 -0800 (PST)
Received: by 10.216.192.73 with HTTP; Thu, 12 Dec 2013 09:17:14 -0800 (PST)
In-Reply-To: <CAEnTvdALiOyoh0JdPZWpR9RZa1mhUVTvkmuxpvT14Do1M210Cg@mail.gmail.com>
References: <CAEnTvdALiOyoh0JdPZWpR9RZa1mhUVTvkmuxpvT14Do1M210Cg@mail.gmail.com>
Date: Thu, 12 Dec 2013 09:17:14 -0800
Message-ID: <CAEnTvdCxyQA=wv9dfAc5-11GF0K464QSDNjPCJ4vHVtN9NH0wQ@mail.gmail.com>
From: Mark Watson <watsonm@netflix.com>
To: "jose@ietf.org" <jose@ietf.org>
Content-Type: multipart/alternative; boundary="047d7b5d98ab5048db04ed598408"
Subject: Re: [jose] JWK "use" attribute and multiple uses
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: Thu, 12 Dec 2013 17:17:22 -0000

Another resend at the request of the list admin. Apologies if you get this
multiple times.

...Mark


On Tue, Dec 10, 2013 at 1:08 PM, Mark Watson <watsonm@netflix.com> wrote:

> All,
>
> Currently, the JWK "use" attribute effectively distinguishes between JWE
> ("enc") and JWA ("sign").
>
> However, additional uses can be added to the registry and the W3C
> WebCrypto group is planning to register use values corresponding to the
> KeyUsage values defined for WebCrypto Key objects. These KeyUsage values
> include, for example, encrypt, decrypt, sign, verify, wrap, unwrap etc.
>
> A WebCrypto Key object may have multiple KeyUsages and so we have a
> question as to how to represent that in JWK.
>
> One proposal is to allow the use string to contain a comma-separated list
> of values. We could register such a scheme directly with IANA.
>
> It would be cleaner, though, since this is JSON, to allow this attribute
> to have Array type where two or more usages are to be represented (it would
> remain a string for the single-usage case). I've also had some negative
> feedback from implemetors about the comma-separated-value idea along
> yet-another-string-parser lines.
>
> Would it be possible to modify the Registry for JWK use values to allow
> data types other than String to be registered ?
>
> ...Mark
>
>
>