Re: [Ace] Eric Rescorla's No Objection on draft-ietf-ace-cbor-web-token-13: (with COMMENT)

Eric Rescorla <ekr@rtfm.com> Wed, 14 March 2018 21:38 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 32DF1127873 for <ace@ietfa.amsl.com>; Wed, 14 Mar 2018 14:38:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 TCTT9mnJnb_Q for <ace@ietfa.amsl.com>; Wed, 14 Mar 2018 14:38:27 -0700 (PDT)
Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DFADB12D7EC for <ace@ietf.org>; Wed, 14 Mar 2018 14:38:26 -0700 (PDT)
Received: by mail-qk0-x22c.google.com with SMTP id z184so5200788qkc.1 for <ace@ietf.org>; Wed, 14 Mar 2018 14:38:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vvVjZxC5V2C0Fr8QmXo8jUjnhpGY+FlPr4IRwc+lC2U=; b=PdYakkG8nM3l3WOH2bs43LzPzWlRdlKgoZjQGSh/a9OlCkNI+ua5lamUWMAaaC8dC8 TeKy1YfgXo//XZNO1+0GmR2uW3vJ9LIpGoMbkuQ3F1pks9L4pM8xrtl8Yo8ZmCQnU3N+ 5GfRBW+EBYmJc1P22xZYOuWP9p3pjjUeYSnNPs1UYQROnWFrRJPgixfiyQACcPmM9uuJ FlIpOKJsLNNbCLQlgvJjakhumxiEjYM+btHk/mGYlLhN+acvsvrFU7ikXdvJQ0TV5b09 L7BKuiLXvyszJ5gHSQxEtK02JTXyYu/7fYWBRnC5eUV6voTBkJNKp6AOkKM7Ww0vHhBR H+cQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vvVjZxC5V2C0Fr8QmXo8jUjnhpGY+FlPr4IRwc+lC2U=; b=sgZ1EC4pmObPeZ4kI+8kT1FgzeADiERi9vHF+vc71S0XTYBaHOIndtZ9LUncm7wYJH +u3/6R24ZGYwQt8fm0eTLm68Pm3V2hm6cxpDBdfpMYoYRGkl8SVq/IHzfJLef2ZctOYe IH8JUttrGpsiPdQzuvUl1QU7IyTaApGYi/KmoVcOBvF8wAE7C74J7KiqFKrHJpWjiLsw rmyWc8F+jrQqQHsq37xxo/moxegOxoreK6hr+2t9oKFgEzTp9QL3pkyLtDNQJrJvdU5z Y8P2jXoI2nfoSuwGqmauYyGQnUqYaES9ADIIuvDkc+85fwP8vGBfqwzO7J6QSwCx/qcv q02g==
X-Gm-Message-State: AElRT7Ggkj0I63jqgmijhvLutRKSDtjMj7GEYgOk+PkveX27ECaLyR0c sWqtIV8sSuwIkN/ChXje4BiQvYD46pOSPoWDZUhRtQ==
X-Google-Smtp-Source: AG47ELtr5B/Oq/sWheC3bhMF7K+EofbuTH4+Zl3e3rHUDJGYzhW/BaJsZfP6aafSHI12Fwn9hsvbNKCEZkbfSOlUKKQ=
X-Received: by 10.55.89.7 with SMTP id n7mr9367688qkb.15.1521063505952; Wed, 14 Mar 2018 14:38:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.200.37.234 with HTTP; Wed, 14 Mar 2018 14:37:45 -0700 (PDT)
In-Reply-To: <SN6PR2101MB0943032402E93129E4179974F5D10@SN6PR2101MB0943.namprd21.prod.outlook.com>
References: <152045520055.17654.5520380651718604431.idtracker@ietfa.amsl.com> <SN6PR2101MB0943032402E93129E4179974F5D10@SN6PR2101MB0943.namprd21.prod.outlook.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Wed, 14 Mar 2018 14:37:45 -0700
Message-ID: <CABcZeBM=gWZKEQD-aKdS9NN-ep2RGqzKRx6=2BTvW-A=O_RaGg@mail.gmail.com>
To: Mike Jones <Michael.Jones@microsoft.com>
Cc: The IESG <iesg@ietf.org>, "Kathleen.Moriarty.ietf@gmail.com" <Kathleen.Moriarty.ietf@gmail.com>, "draft-ietf-ace-cbor-web-token@ietf.org" <draft-ietf-ace-cbor-web-token@ietf.org>, "ace-chairs@ietf.org" <ace-chairs@ietf.org>, "kaduk@mit.edu" <kaduk@mit.edu>, "ace@ietf.org" <ace@ietf.org>
Content-Type: multipart/alternative; boundary="001a114c91aaf415a605676631ff"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/NWha11LcO52GSbRC1Oi2hqG_AkY>
Subject: Re: [Ace] Eric Rescorla's No Objection on draft-ietf-ace-cbor-web-token-13: (with COMMENT)
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Mar 2018 21:38:33 -0000

On Wed, Mar 14, 2018 at 2:34 PM, Mike Jones <Michael.Jones@microsoft.com>
wrote:

> Hi Ekr.  Thanks for the review comments.  Responses are inline below,
> prefixed by "Mike>"...
>
> -----Original Message-----
> From: Eric Rescorla <ekr@rtfm.com>
> Sent: Wednesday, March 7, 2018 12:40 PM
> To: The IESG <iesg@ietf.org>
> Cc: draft-ietf-ace-cbor-web-token@ietf.org; ace-chairs@ietf.org;
> kaduk@mit.edu; ace@ietf.org
> Subject: Eric Rescorla's No Objection on draft-ietf-ace-cbor-web-token-13:
> (with COMMENT)
>
> Eric Rescorla has entered the following ballot position for
> draft-ietf-ace-cbor-web-token-13: No Objection
>
> 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 https://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:
> https://datatracker.ietf.org/doc/draft-ietf-ace-cbor-web-token/
>
>
>
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
>    The claim values defined in this specification MUST NOT be prefixed
>    with any CBOR tag.  For instance, while CBOR tag 1 (epoch-based date/
>    time) could logically be prefixed to values of the "exp", "nbf", and
>    "iat" claims, this is unnecessary, since the representation of the
>    claim values is already specified by the claim definitions.  Tagging
>    claim values would only take up extra space without adding
>    information.  However, this does not prohibit future claim
>    definitions from requiring the use of CBOR tags for those specific
>    claims.
>
> Why do you need a MUST NOT here? This seems like not really an interop
> requirement
>
> Mike> This requirement was added to simplify both producers and consumers
> of these tokens, after a working group discussion.  Not having to have code
> to validate, parse and then throw away tags prefixing claims of known types
> both makes representations smaller and requires less code.  Since the tags
> add no value for these claims, it seemed better to require that they be
> omitted.
>

Thanks. Seems reasonable.

]

>   4.  Verify that the resulting COSE Header includes only parameters
>        and values whose syntax and semantics are both understood and
>        supported or that are specified as being ignored when not
>        understood.
>
> I'm surprised to find that this is not a generic 8152 processing rule.
> Can you explain why this is necessary here?
>
> Mike> This intentionally parallels the same rule in JWT (
> https://tools.ietf.org/html/rfc7519#section-7.2, step 5).  It's saying
> that you have to validate that the parameters describing the parameters
> describing the cryptographic operations performed.


Sure. I don't think this is unreasonable, but why isn't a general rule for
COSE messages rather than just CWT?

-Ekr


>




>                                 -- Mike
>
>