Re: [Cbor] đź”” WGLC on draft-ietf-cbor-tags-oid-02

Francesca Palombini <francesca.palombini@ericsson.com> Tue, 26 January 2021 20:23 UTC

Return-Path: <francesca.palombini@ericsson.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 202F83A0E4F; Tue, 26 Jan 2021 12:23:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.451
X-Spam-Level:
X-Spam-Status: No, score=-0.451 tagged_above=-999 required=5 tests=[DKIMWL_WL_HIGH=-0.25, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 ZYgUebu1UFn4; Tue, 26 Jan 2021 12:23:32 -0800 (PST)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2086.outbound.protection.outlook.com [40.107.22.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8F0263A0E4D; Tue, 26 Jan 2021 12:23:31 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7KAF0zz1IXbEP7aJ2vWsO/3XoXmpb/bvV+FjQPnJ9r9Lv368kj0XwC0RMInut+jMZIOL0qas4G5C5WZSNiP3rLzOKh52BMhzi8E/B6u7wj7pFgXNYyQHhgkvFKf2vndQcWLyb+1GE5iwWm6+wJ/CcrYMlyTltxMRHnykH4dRGeHFz90SsrG/L9dTaI2M/9oPWs4Mc7RVM2S/W36L3EzEFnXVVatPXmvhPKA979IkRWW78yb00UQa9EsWRfp/GKwQbZl37dRZYzS1GkkMjgnOtdIZFQM4xV0slJ5Djg68jNlwY0ZWvsIWwFgINlkam1X0fvnW5QeoumS9QwvnYPjIw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ew4MP3Eba6cpEGYQKA4UVBqSnk0r+LOSVlgAqQ2Y8ic=; b=Qn9npSyqHAIf97UHTFw0S9xkAn0+ipiNx/5kFuMY9WoyInRYNUyd4V+5wQOzJfczB/fl2xj5QAQFF5Ur4WheTk3BkMe+HzgHUjtlHIRBNeitOAjg462u/VZMicygIhkXt6fj7+7GiKCa2GgVkESuy+EjpGOEQr6y5uHeIgouAPuBIoTBbSvw8+2WxTk0Ln8DfSLTdXtusP8cZ3axSsiYNIHs5nYWzMr8fvzReK7EBIhkJYBKPcRMk9IyTikJWfeW7Tem3HeDRg1wwGEuzMJbOgv2c5m4m0MvPryhJZQ9cbd5gwH1eZII2VByH/G9VpYNZ34P0ZvsRL4eaeF5FIMrKQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ew4MP3Eba6cpEGYQKA4UVBqSnk0r+LOSVlgAqQ2Y8ic=; b=H/omr7w+E/HOmUlbTbLONqeiKZvOhcwOe/HSr7EzWTIJuUo1rkoiFwL0TnDKVKT8xD7toMBEGuW4Qj1rqcwR4u4tCxKyZuaUae2ZzaRiUyJesC9KevGahUlFJTtyb1vcCwhTapOE0Ew62uiExgKhz3pKzuhQAV25U/1RwukLf0I=
Received: from (2603:10a6:803:74::33) by VI1PR0701MB6959.eurprd07.prod.outlook.com (2603:10a6:800:194::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.15; Tue, 26 Jan 2021 20:23:28 +0000
Received: from VI1PR07MB4477.eurprd07.prod.outlook.com ([fe80::c5e9:fb9a:e4a0:e7a4]) by VI1PR07MB4477.eurprd07.prod.outlook.com ([fe80::c5e9:fb9a:e4a0:e7a4%5]) with mapi id 15.20.3805.011; Tue, 26 Jan 2021 20:23:27 +0000
From: Francesca Palombini <francesca.palombini@ericsson.com>
To: Carsten Bormann <cabo@tzi.org>
CC: "cbor@ietf.org" <cbor@ietf.org>, "draft-ietf-cbor-tags-oid@ietf.org" <draft-ietf-cbor-tags-oid@ietf.org>
Thread-Topic: [Cbor] đź”” WGLC on draft-ietf-cbor-tags-oid-02
Thread-Index: AQHW0zLnm04o5d0XvEmBfGTDxXmS/aopXlcAgBFOO4A=
Date: Tue, 26 Jan 2021 20:23:27 +0000
Message-ID: <6E6241C9-0CE2-43C0-BF7E-29600EFC3792@ericsson.com>
References: <37C21414-561B-47EA-9DCD-9166B2F8FD46@ericsson.com> <0240FBF4-B53C-4C48-AFAE-11B011B99219@tzi.org>
In-Reply-To: <0240FBF4-B53C-4C48-AFAE-11B011B99219@tzi.org>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.45.21011103
authentication-results: tzi.org; dkim=none (message not signed) header.d=none;tzi.org; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [2001:1ba8:147a:c100:815e:bf3:5856:fb48]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: bc07e7a6-b1b1-44bc-5dd9-08d8c2383d8e
x-ms-traffictypediagnostic: VI1PR0701MB6959:
x-microsoft-antispam-prvs: <VI1PR0701MB695904767511C984B8393B5598BC0@VI1PR0701MB6959.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: VWouexZc9m2kyxJB8tqWZydhrUtdv8nMycgvsbAWtgI5yV0yWFdf+kuczI9gNFy/Zjuk0Gv4H6ygQ50AcCKv/TY3pMZm5YiYAmMpO1JorTppOrm1z8EijjdzGMR/1kCCQ60efPfaDzTy366HxfLfjZag0cN0KkfsLD6RRJ+rlfYRF8WD9CNTEmV3a9Uj9UGnWZLDIGkb7rbLV+PFs87CxuU8FTi2AvLZ/cu/q5lNqEZreAxCluMfvDX5i1dRfvaq2T9+dHLUq5WICPUwuAJnbBoJLq7iCMoFL+HfsRusSwwbsIFWu9OnD42mkQ4G8CcGm3ZSK3KYfxO9V/StXbEVSb5mJRrSRVjacOGnoZ18YTcYGYCbnHHoPowHDwd/3LYjnUBPm4qhOgJnSfT/xsCD5I53yk6zjym8/SOUkGOeIqOksxzd3St8wNgffyLN3oatr0STgqaWoM4Riz8Iq5n/shT0gUx0+yXivl/4IrvpnugnieH+crfqmGN0avbKv8hxMyFcCjECM+kU+cEq7CLSZK9GIbRv43Wb9QOJUhHZu/SkoA6dCb2T636oSRNE/RYr
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR07MB4477.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(366004)(396003)(39860400002)(376002)(6506007)(33656002)(66476007)(76116006)(64756008)(91956017)(966005)(316002)(2906002)(8936002)(44832011)(66946007)(71200400001)(6512007)(6916009)(83380400001)(54906003)(83080400002)(86362001)(478600001)(66556008)(6486002)(5660300002)(2616005)(4326008)(66446008)(36756003)(186003)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: NJJehSMQteH1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QLn3xqmEDzpSLOelDS1zfIJpFEyVsLlunGiXMyq7PIDRACK7LGfEN6C1VAACBiE0MI81og==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <AD82AF4FDA59744DAA751AA0A5C2F6F5@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: VI1PR07MB4477.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: bc07e7a6-b1b1-44bc-5dd9-08d8c2383d8e
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2021 20:23:27.8913 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: rRq05F1px9yxalrBrHylz2yacXEb7r4yFJO+uUFzjPk0tXoWRFdBSP4eXC2+4IX1U/X3hkzO8aQx24hxL5numn8mMTeKCL1AF3f3svTQked/Un/VbqtYQju8q1/ddUXt
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB6959
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/jaCK-fJO1_Y63giv2kP-APRo7UU>
Subject: Re: [Cbor] đź”” WGLC on draft-ietf-cbor-tags-oid-02
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jan 2021 20:23:34 -0000

Thanks Carsten, it looks good! Please upload v-04 with these changes.

Francesca

On 15/01/2021, 22:07, "Carsten Bormann" <cabo@tzi.org> wrote:

    Hi Francesca,

    thank you for this review. 

    > * I am not sure (and please correct me if I am wrong!) there ever was a conclusion to Jim's comment about not seeing the necessity of going below one layer for maps and arrays: https://mailarchive.ietf.org/arch/msg/cbor/5lj35zvO85Yu2tVO_Fw__KWLadc/  - this was discussed at an interim: https://datatracker.ietf.org/meeting/interim-2020-cbor-14/materials/minutes-interim-2020-cbor-14-202009021700-00.txt  And I see the text Jim referred to was clarified, but as shepherd I'd like to see more opinions on this point: anybody else seeing a problem with Carsten's point of "if you don't need all bstr tagged, don't use the tag on the map/array" ? Anybody agrees with Jim and would rather this being a 1-level tag?

    I haven’t seen support for this, so I consider this a wontfix.

    > 
    > * Update references to RFC 8949

    Done.

    (Note that we have a downref to RFC 6256 SDNV; I wonder why that isn’t in the downref list https://datatracker.ietf.org/doc/downref/ .)

    > * normative references X.660, X.680 and X.690 are missing links

    Ugh.  
    I didn’t want to innovate here, but RFC 8951 has (inconsistent) ones to X.68x (why is the X.680 one different from the others?).

    I went with:
    https://www.itu.int/rec/T-REC-X.660
    https://www.itu.int/rec/T-REC-X.680
    https://www.itu.int/rec/T-REC-X.690

    (Wow, the last bib entry for X.660 was in RFC 5280!)

    > * add a reference to IANA PEN registry

    Done.

    > "the first byte of each SDNV cannot be 0x80 (which would be a
    >   leading zero in SDNV's base-128 arithmetic)."
    > 
    > "this requirement requires
    >      expressing the integer values in their shortest form, with no
    >      leading zeroes"
    > 
    > * I would suggest reversing this sentence: "the first byte cannot be a leading zero in SDNV's base-128 arithmetic, so it cannot take value 0x80", possibly mentioning the requirement on the integer values being expressed in their shortest form. By the way, does this requirement comes from BER OID rules? Can you add some reference to where this is specified?

    RFC 6256 says “Section 8.1.2.4.2 of X.690”, which contains the bullet:

    c) bits 7 to 1 of the first subsequent octet shall not all be zero.

    Reference added.

    > "except for the last byte, where it must be
    >   unset" 
    > 
    > * either replace "must" with "is" or with "MUST" (I would suggest is, because the normative MUST before covers the requirement already)

    “is” it is.

    > 
    > "its first byte" and "its last byte" 
    > 
    > * I would replace "its" by "the tag's" for clarity.

    “the byte string’s", actually.  Done.

    > * It seems to me that this document could benefit from a more expanded terminology section. In particular, I would quickly summarize the terms used from X.690 - e.g. arc - and SDNV.

    Well, I put this in the “Object Identifier” section:

    We also use the term "arc" when the focus is on the edge of the tree
    labeled by such an integer value, as well as in the sense of a "long
    arc", i.e. a (sub)sequence of such integer values.)

    The terminology of X.660 is really confused (they try to maintain the illusion the edges are labeled by Unicode strings), so this is probably the best we can do.

    I also added a pointer to RFC 6256 in the terminology section.

    > * Some introductory text for the examples in Section 3 would have been good.

    I added a sentence.

    > * I am a bit unsure about the reasoning behind section 4 "Discussion". Is this not background? Then in my opinion it would fit better in section 2.

    I moved it so it is now section 2.2 (initiating some renumbering of sections).

    > * I would have merged section 3 and 6 in one section “Examples”

    I moved what was Section 6 to a Section 4.1, titled:

    4.1.  Tag factoring example: X.500 Distinguished Name

    Separating the basic usage examples (now Section 2.2) and the tag factoring usage example (now Section 4.1) probably helps the user.  If you insist, we can of course reorder and merge back.

    			.oOo.

    Thank you again, I think the document is better now…

    I have made the updated version available at https://protect2.fireeye.com/v1/url?k=ec06175c-b39d2e5e-ec0657c7-869a14f4b08c-beba7de442b69289&q=1&e=77373f56-00e1-459f-99c9-b4227b5b0846&u=https%3A%2F%2Fgithub.com%2Fcbor-wg%2Fcbor-oid (pregenerated HTML at https://raw.githack.com/cbor-wg/cbor-oid/master/draft-ietf-cbor-tags-oid.html as indicated in the README; diff at https://tools.ietf.org/rfcdiff?url1=draft-ietf-cbor-tags-oid&url2=https://raw.githack.com/cbor-wg/cbor-oid/master/draft-ietf-cbor-tags-oid.txt in rfcdiff format).

    The plan is to submit -04 after a quick re-check of these updates.

    GrĂĽĂźe, Carsten