Re: [jose] Richard Barnes' Discuss on draft-ietf-jose-json-web-key-33: (with DISCUSS and COMMENT)
Richard Barnes <rlb@ipv.sx> Sat, 18 October 2014 18:37 UTC
Return-Path: <rlb@ipv.sx>
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 A6A121A00FB for <jose@ietfa.amsl.com>; Sat, 18 Oct 2014 11:37:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 FHXzgGiJX5D5 for <jose@ietfa.amsl.com>; Sat, 18 Oct 2014 11:37:40 -0700 (PDT)
Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 465611A00F7 for <jose@ietf.org>; Sat, 18 Oct 2014 11:37:40 -0700 (PDT)
Received: by mail-vc0-f169.google.com with SMTP id hy4so1983393vcb.28 for <jose@ietf.org>; Sat, 18 Oct 2014 11:37:39 -0700 (PDT)
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:cc:content-type; bh=g5DKWoPrRskwopmye2p9ZWy0gyLVRr3iHR2ZA7tPQk8=; b=ddPwIAJRHKwUWbZNrFT2bchLc7jZgXV+Tp95Cr2+1P7gkz9TLhNFZhDM4OheYLOIW1 4NbfcX0EIlQ6cUYeMy9f0zPrS7mv8effNXiMENK/Lm9S4BUdeOPJzIEwPk7eWzW+lgJW IiBhSMfZNqrhBDQwJ/zXY9BeU4O6VP1QxSESjQjArxC+ZxH5pVemQUUM4IAQwOi+gKpd jNkxNO1l7IsLqK8SEffULq2GMGncWwIvhAbf4ZeocYW8ZkVFijzmXe+4i/ORi7+XdzIo H0lo9yGPQe7fqcAVfSNrGYNpI89HWJPcWy69mTmHgcMz2qQeG33PVz1syWczTCTQTGeA K9Pg==
X-Gm-Message-State: ALoCoQl4fUi6pEo+Wb++42ZYQDrNV7WRcnhOE/qWMh0f6JmVfudSampBXd0DuO23JBTyNO4EROtS
MIME-Version: 1.0
X-Received: by 10.221.68.199 with SMTP id xz7mr13921888vcb.7.1413657459480; Sat, 18 Oct 2014 11:37:39 -0700 (PDT)
Received: by 10.31.149.205 with HTTP; Sat, 18 Oct 2014 11:37:39 -0700 (PDT)
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439BB0D5BF@TK5EX14MBXC286.redmond.corp.microsoft.com>
References: <4E1F6AAD24975D4BA5B16804296739439BB0D5BF@TK5EX14MBXC286.redmond.corp.microsoft.com>
Date: Sat, 18 Oct 2014 11:37:39 -0700
Message-ID: <CAL02cgQWH+is-L3z9PTAywRuxXjPFyu_viHrkNEhCBu73ex4YQ@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Mike Jones <Michael.Jones@microsoft.com>
Content-Type: multipart/alternative; boundary="001a11339ffab4f06b0505b6c6fc"
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/M6xERPrfHgWbuZj7pGmr1-4PmNk
Cc: "jose-chairs@tools.ietf.org" <jose-chairs@tools.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>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Richard Barnes' 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: Sat, 18 Oct 2014 18:37:44 -0000
On Tue, Oct 14, 2014 at 5:53 AM, Mike Jones <Michael.Jones@microsoft.com> wrote: > Thanks for your review. The -34 draft contains the following > resolutions. I hope that you can clear your DISCUSSes on that basis. > > -- Mike > > > -----Original Message----- > > From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Richard Barnes > > Sent: Wednesday, October 01, 2014 7:34 PM > > To: The IESG > > Cc: jose-chairs@tools.ietf.org; > draft-ietf-jose-json-web-key@tools.ietf.org; > > jose@ietf.org > > Subject: [jose] Richard Barnes' Discuss on > draft-ietf-jose-json-web-key-33: (with > > DISCUSS and COMMENT) > > > > Richard Barnes has entered the following ballot position for > > draft-ietf-jose-json-web-key-33: Discuss > > > > When responding, please keep the subject line intact and reply to all > email > > addresses included in the To and CC lines. (Feel free to cut this > introductory > > paragraph, however.) > > > > > > Please refer to http://www.ietf.org/iesg/statement/discuss-criteria.html > > for more information about IESG DISCUSS and COMMENT positions. > > > > > > The document, along with other ballot positions, can be found here: > > http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-key/ > > > > > > > > ---------------------------------------------------------------------- > > DISCUSS: > > ---------------------------------------------------------------------- > > > > Section 4.3. > > "The "use" and "key_ops" JWK members SHOULD NOT be used together." > > Did the WG discuss how these could combine? What was the outcome of that > > discussion? This could be an important point for interoperability. For > example, > > WebCrypto enforces them both, so it will break if it gets a key with > "use" and > > "key_ops" set to inconsistent values. > > > https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#rsa- > > pss-operations > > I believe that the working group discussion is accurately reflected in > this text from the spec: > The "use" and "key_ops" JWK members SHOULD NOT be used together. > Applications should specify which of these members they use, if > either is to be used by the application. > > To keep things simple, applications should choose one or the other, based > on their needs. Note that this is a "SHOULD NOT" - not a "MUST NOT", so if > WebCrypto believes they have a good reason to allow either or both, they're > not violating the spec. But specifying which combinations are legal and > which aren't in the JWK spec seems very high on the complexity to > usefulness ratio. I hope that you will choose to withdraw this DISCUSS on > that basis. > How about if we require that they be consistent if used together, but punt the definition of consistency to WebCrypto? """ The "use" and "key_ops" JWK members SHOULD NOT be used together. Applications should specify which of these members they use, if either is to be used by the application. If both "use" and "key_ops" members are present, then they MUST be consistent (see [WebCrypto]). """ > > Section 8. > > "[TBD]@ietf.org" > > This needs to be populated before approval. I don't know what's > customary > > here, but "jose@ietf.org" is an obvious candidate. > > Per the spec, jose-reg-review@ietf.org is already the recommended name. > Yes, we would create this list before final approval, just as > oauth-ext-review@ietf.org was created before RFC 6749 was approved. I > hope that you'll choose to withdraw this DISCUSS on that basis. > That sounds fine to me. Who has the action to get that list set up? > > ---------------------------------------------------------------------- > > COMMENT: > > ---------------------------------------------------------------------- > > > > Section 1.1. > > The pointer for BASE64URL should be to JWS. One level of indirection, > please :) > > Agreed > > > Section 4. > > It might be worth being explicit (here or elsewhere): > > "A JWK MUST NOT contain algorithm-specific members for key type other the > > one specified in its "kty" attribute." > > I agree with the sentiment, but this actually contradicts the statement > that member names that are not understood MUST be ignored. > Good point. Perhaps we could phrase this as a requirement on creators, leaving consumers free to be more liberal? """ The creator of a JWK MUST NOT include algorithm-specific members for key type other the one specified in its "kty" attribute. Consumers of JWKs SHOULD NOT reject JWKs with such members, however, in the interest of extensibility. """ > > Section 4.1. > > "cryptographic algorithm family used with the key" > > "... such as "RSA" or "EC"." > > Agreed > > > Section 4.7. > > "base64 encoded ([RFC4648] Section 4 -- not base64url encoded) DER" > > It seems unpleasant for implementations to have to support two flavors of > > base64, especially since this doesn't use PEM directly. Did the WG > discuss just > > using BASE64URL? > > Not much, although each certificate value is actually a PEM-encoded value, > including allowing newlines, etc. People agreed with that goal when we did > discuss it. > > > Section 9.1. > > It might help here to note that technologies like PKIX and JWT can allow > relying > > parties to verify the provenance of a key and binding of attributes to > it. > > Can you propose specific language for this? What I have in mind is > delivering a JWK or JWK Set on a TLS channel using a URL that is > cryptographically bound to the use of the key - possibly using the URL as > the issuer of a JWT signed with the key, but you may have something else in > mind. > I had in mind more the traditional, "use a certificate to bind attributes to a key" sense. How about this? """ In most applications today, there are trusted authorities that vouch for the provenance of a key and bind attributes to it. For example, in PKIX-based applications, participants use certificates to verify that a certificate authority has bound certain attributes to a key, such as a name or key usage. JWK supports this style of provenance through the "x5u", "x5c", "x5t", and "x5t#S256" attributes, all of which reference a certificate that a relying party can use to associate attributes to the JWK. Other assertions systems, such as JWT, can likewise be used to assert bindings of attributes to keys. In some applications, it may also be convenient to use TLS as an ersatz assertion mechanism. For example, an application could require JWKs to be downloaded with associated attributes over HTTPS as a way of having the HTTPS server assert a binding of the JWK to its attributes. This is similar to the way that the XMPP POSH mechanism uses HTTPS to assert delegations from one way to another. In such applications, however, care needs to be taken to ensure that secure transports are always used, and to avoid confusion with other uses of the TLS server in question. The former situation would allow an attacker to create bogus assertions, and the latter would let an attacker trick the server into issuing bogus assertions. """ > > > _______________________________________________ > > jose mailing list > > jose@ietf.org > > https://www.ietf.org/mailman/listinfo/jose > > Thanks again, > -- Mike > >
- [jose] Richard Barnes' Discuss on draft-ietf-jose… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Jim Schaad
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Barry Leiba
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Barry Leiba
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Jim Schaad
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Barry Leiba
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Barry Leiba
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Kathleen Moriarty
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Kathleen Moriarty
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Kathleen Moriarty
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Richard Barnes
- Re: [jose] Richard Barnes' Discuss on draft-ietf-… Mike Jones