Re: [Ace] Genart telechat review of draft-ietf-ace-oscore-profile-17

Francesca Palombini <francesca.palombini@ericsson.com> Wed, 14 April 2021 16:35 UTC

Return-Path: <francesca.palombini@ericsson.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 87D713A1651; Wed, 14 Apr 2021 09:35:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, 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 znUFrEy3Q0b1; Wed, 14 Apr 2021 09:34:57 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60074.outbound.protection.outlook.com [40.107.6.74]) (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 08B413A164E; Wed, 14 Apr 2021 09:34:56 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ca8/GcAATw83lTndKOgMMOfby17Gi2jSfpABQZI4PGmfi48XmEizllT/FFqCHP7rOZRI5YkEY2wgpoi8sz3sZJzAjsMYiYK4XfE8Wqkk9L5TldCVPlkVOIetR4/nwUKMf9SiAJ1SdK78DM5aUQhpS7vj+Q+vn7U/b7IPIwtW1V4TeKqdg2X+qYoKDM2gjx+Bwg/71pd4n7p1w0kl9FoCxgF5MPWCxjzFyTFVbmwTCfFc3QaFFOVTSp9N3wRsBidksO8H4LUCxMeD4wMsUBXJdf/eysCGk1lpFe1wN4xqO4tTkIPrIM7CmkLHohay3QduTPejO9/2zh4sMrKrf5oljQ==
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=3UaNBjIe2dwJ7ucZrEFsa8Z8tV/awnI95PPvbRhed0I=; b=iDo1tue8JnmwljzuIhB0oyIyi4dGSBdHP2oes7AlpcdqCVHWeOf21CNstaz5VZiHZUnQv2XPYDtDEAGNHoyxYutIT5RHCn+im/Jc97kzUzMYAXmqznbcZmMLV3fpRrugnU7GZn42WYASU1YzwLVTa+yVLWgST2JRbJx1wMIRsnO6mrXkgpvVRDKdPlb7Sv8K72KfE4XwBjvA2BItINbe+wuI/c0pbo0U/pLSUg+AS+905fUY3+UDZ1s6PA7PvKMcLIGWlZc5dgP4JSv/KAvfS7Gt6k3rEQu8TlL63BJfuJx2Lozu6DCBbaIqIkSYPeeqASJ8tFnJpnmhkiLwWhZK/A==
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=3UaNBjIe2dwJ7ucZrEFsa8Z8tV/awnI95PPvbRhed0I=; b=pxwOAFJRB8y2+caP3AWtXIKtABW7mp2qeLJTmrpQ2HVKKPGo9L7lCYMDNvJJDepzl4V3t4zb9q7qq4ehgSScIm1EBq8DWT7dlADIKxWww/y7okwrYNhyrZRZyU9Z08hIprkpkC8Zf5Gkjt5gKOPG5pZeY9jnlILgNndS/MUQy8Q=
Received: from HE1PR07MB4217.eurprd07.prod.outlook.com (2603:10a6:7:96::33) by HE1PR07MB3098.eurprd07.prod.outlook.com (2603:10a6:7:38::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.6; Wed, 14 Apr 2021 16:34:53 +0000
Received: from HE1PR07MB4217.eurprd07.prod.outlook.com ([fe80::593:f4fd:94e3:d90b]) by HE1PR07MB4217.eurprd07.prod.outlook.com ([fe80::593:f4fd:94e3:d90b%6]) with mapi id 15.20.4042.016; Wed, 14 Apr 2021 16:34:53 +0000
From: Francesca Palombini <francesca.palombini@ericsson.com>
To: Elwyn Davies <elwynd@dial.pipex.com>, "gen-art@ietf.org" <gen-art@ietf.org>
CC: "ace@ietf.org" <ace@ietf.org>, "draft-ietf-ace-oscore-profile.all@ietf.org" <draft-ietf-ace-oscore-profile.all@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>
Thread-Topic: Genart telechat review of draft-ietf-ace-oscore-profile-17
Thread-Index: AQHXIDQMgyWsOLenfk6y/r1YXh/B46q0eVCA
Date: Wed, 14 Apr 2021 16:34:53 +0000
Message-ID: <71EB8CBE-CAFE-42E4-BB7B-6CE1A2CD65E4@ericsson.com>
References: <161653858008.2324.11904671400153326745@ietfa.amsl.com>
In-Reply-To: <161653858008.2324.11904671400153326745@ietfa.amsl.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.47.21031401
authentication-results: dial.pipex.com; dkim=none (message not signed) header.d=none;dial.pipex.com; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [2001:1ba8:147a:eb00:a846:77bb:6fc5:8663]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5ffd734b-c99e-4317-2f1d-08d8ff633b84
x-ms-traffictypediagnostic: HE1PR07MB3098:
x-microsoft-antispam-prvs: <HE1PR07MB30987A2603AD1A75DB2C90FB984E9@HE1PR07MB3098.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 1oS7eRH63iyQyWYXjIkiuL5et7uyhnv1TSKc3d9YdCrFTW40mXy4t4ym2UK71jPwWbNpaqwjG7KqpUvmLEfiSKyMwE9x1ohtHJ6tnG4EkBo+ghKEG1ZI0Yfqi1ZFxPJFabVx88jlDK9kol6A+1OuSyLAdXYyz03ygB4dtiS1ufsvHUQKR6sW1Q/z3IUIuHOMR/l/dcjA7HEPIAw0EUGSiftpl9lzz4HcArxYQ/V2Xfnz2jetycHonf8mPEqS/CXX0zIbwL5xjYVci8xg44sWrVTcpeKUV2ZVQC9ezJPsWZuO08Tglfr1LdKUuR/ytNrdAzXhK4XASiKZ8n9WH5bZh4yrNSlf0Bao+wMJRXczZu7YZN+a2enLXKh6Lt0DyYhFEQNbncPUNfgdk3hRF9rmwdXdIk29Gbb/TrKooP+8BBB+9WjBXKz3wGOntyvr9YvgMWwTj6JWLbSF40N8waSdmB5fpC0RjiL6T06RYm3lvptYcB2deLXGcYqUtrMF132HWVY+4qncD6Ao5QVyGaae+nyZKYrC6kSMZMA/6GLrHYCJggWp2A41PHt3TxN8GEMqyDAk9qEuId4OKIwLSNX6EJ0pfnBE3Iq3kp10GUYXVDPfB5C83pV8wWz2koeeqEsGYhO9fhEDIBwIRf03o3GaFefsTEFsGkgaI48z96wIsrS76qBUX2jdOEfs6tHp3S7xCTkoZxaP5RWWnJZTahmfQf1lUY2CamKkftF0mnr/sw8=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB4217.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(316002)(54906003)(33656002)(2906002)(2616005)(36756003)(44832011)(6512007)(186003)(966005)(83380400001)(110136005)(6486002)(478600001)(66476007)(8676002)(8936002)(76116006)(4326008)(86362001)(6506007)(71200400001)(66556008)(66446008)(5660300002)(66946007)(38100700002)(122000001)(64756008)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: RmJX3Jm3WNc1ajo+k1sklZSkz7uWFyvPwl7eNqylu1uOPAz3MJ/iLVQHoMUi6nNxhLQiR8nWAnGD6d5jdKzZBJ+peQfOMIb7/paXLkPsxIkM4iCueIvmNdDsC/2Q/lFveAM04jMM+YkQPh1Mc6Sf9xUYD7kXBKX/ZN6krHxOtDiJlj7XE0/RVkSAJh7c+uRLN/dpwWBtKjZhJxtguX8HUO3P09ljaA/8/UfiECJwLE5uWTVrxDT5CLSXD4Q5XX+uIF1rfyIDcPJHhWIbZwf1vZBcgdLypROjF/a/Rz0Ss56wJYDIspT2RJj/dIeEuHguXecRRVs5/6dIgxL83t0FG5ndzqUfO7aWEusj+ELSscqnfRkXQfAXjekmfr3dEjE+TCq/Vesy+qLJ5ueBOsKhj2tNqtaV/OiQoC/lQMHJ3x9eYrdfV3DKCsN6Vf3U/d8rbLOiYqvnWNcx0AooTPjqCatDfahf4Oy8hwFI9ggnfcO39R3m5ihKB8e6RxTk0U1J5dw1rmbfpnWF0hhSYFj+m5046ysP/AGBcpb1xHIAhnAIFyW1b0YPq0XPW5Itg1OThpDAVXHaH46CFJKxGHh1pCqVgO8nRnHosRufwC9H9M9L0aBABhaRIVmQ9dgbnYaI1KGcjFWy5QuNpZaPJXh3rd2VMjKWOmWJJrCkGv/4IqRT1DPsXgK2HiUchx4NQKdsOBlYtQUKH8+eL+OkQerlTdhBljqpncL14MTkRY2uB30xbBGoxLvjqLA9XsTuwz5cR5I1H7a+l5zsQ9qlsQJhGmCkUeVtc3YQTqoIpub3nTU0HgYoHxu+aXEmQtOFSPCxB7L8i8eAQF33hU16rJy6utU7m7iV5bMgoOg3wmaUUKmx/XQrD5A6T8us/YpVW6xaPzSbJlF5ZAQDizq/rtm6L9oO4rJaVLtQV11TLyeofl+/nT3Kd6PtwV77z/F2vZCTZjQPORFQzl8vpNnZPo4oY9ED3hXAzbGdFd/nFlah/NEKzTUblSfvVEdPxp8R1jWF5vc2OPf8i98G2hfJu3ybw4UjxThB61P3npBqtEHijAgB7LipcHlR/FEXIMez8gqULvQ4+JYj2MLRup6DNPsyKIrNXFRKRvpd4683kwwHJ45bp5z5FrTgTzQZbGoq/6YKX5bhAyYCBqnBeTF1KLCRJAjvjwAHLfuAtY+y7fcqbUNzIPahwOUj7L4g23SzPLC3dp+uv6KQgQSR/RSWDHTtIVgVYzlb42WtcZb3Txoj2C41cXwUM3mzbJL/fpbe4NdjhWabm0jjSO7ZNm67mcBDo8vzX8b9xPDiydAuaoC+UZauN/1nYX7nE86XF5SI1fQTDgW5XXnt93ZhzFEObN8lA9wtzqVfwpNsfIx3dCQecZk7rLAiwhjGDzUqf17YxqNXDfOmFlg3dd+3V6tl1Tzg5g==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <F0BBC14B50575645B3ED6D541D8D7A05@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: HE1PR07MB4217.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5ffd734b-c99e-4317-2f1d-08d8ff633b84
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2021 16:34:53.6829 (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: IDO1P9zhX8OZLLBr+JW7Bb7umG9sGBoBPjcEitcpIarLVossFD/vZgPOBgvP9LYkAVI8viOnWatV3BWdRrvp2oaBKzq2I6jIua+uQleYymPc6DnpQxnZmzqDP1np+4R4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3098
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/WDQa9crang9LX0qavTi_KMRnHok>
Subject: Re: [Ace] Genart telechat review of draft-ietf-ace-oscore-profile-17
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.29
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 Apr 2021 16:35:03 -0000

Hi Elwyn,

Thank you very much for the in depth review! We have incorporated your changes in the newly submitted v-18 https://datatracker.ietf.org/doc/html/draft-ietf-ace-oscore-profile-18 , but you can also see the specific changes in the github: https://github.com/ace-wg/ace-oscore-profile/commit/c98ea9c53994aaa85add5c4a3436a14935fa0471 

Answers inline.

Thanks again,
Francesca

On 23/03/2021, 23:29, "Elwyn Davies via Datatracker" <noreply@ietf.org> wrote:

    Reviewer: Elwyn Davies
    Review result: Ready with Nits

    I am the assigned Gen-ART reviewer for this draft. The General Area
    Review Team (Gen-ART) reviews all IETF documents being processed
    by the IESG for the IETF Chair. Please wait for direction from your
    document shepherd or AD before posting a new version of the draft.

    For more information, please see the FAQ at

    <https://trac.ietf.org/trac/gen/wiki/GenArtfaq>.

    Document: draft-ietf-ace-oscore-profile-17
    Reviewer: Elwyn Davies
    Review Date: 2021-03-23
    IETF LC End Date: 2020-07-20
    IESG Telechat date: 2021-03-25

    Summary:
    Ready with nits.  A very great improvement on the previously reviewed version. 
    Thanks.

FP: Thank you!

    Major issues:
    None

    Minor issues:

    Would it be useful to provide some advice on the length of salts and IDs to go
    with the advice on length of nonces?  There is some in s3.3 of RFC 8613 but
    some other reference might be helpful, maybe placed in s3.2.1. and/or s4.

FP: This draft does not have any other requirements on salts and IDs than RFC 8613. The IDs need not be long, but unique. The salt need not even be unique. According to RFC 5869 Section 3.1 “HKDF is defined to operate with or without salt”. However, the use of salt adds to the strength of HKDF. “Ideally, the salt value is a random (or pseudorandom) string of the length HashLen.” But the salt going into HKDF is composed of the master salt and the nonces. It therefore suffices with nonces of length HashLen/2 generated by the peers as described in this draft, independent of salt.

    Nits/editorial comments:

    General: The RFC Editor conforms rigorously to American practice and allows
    only the use of double quote marks (") in the text when marking strings as
    quotations and such like.  The document makes extensive but not totally
    consistent, use of single quotes to flag up field names and such like (e.g.,
    'nonce1').  In practice these are unnecessary, but may be replaced by the RFC
    Editor if left in place.  Personally. I think most of them can be removed. NB
    this does not affect CBOR items such as h'1645.

FP: We have now removed all single quotes "'" and replaced them with the XML2RFC v3 supported <tt></tt>. We will make sure to follow RFC Editor recommendations about this.

    General: There are lots of usages of 'CBOR diagnostic notation without the tag
    and value abbreviations'.  An abbreviation would reduce the verbiage.

FP: Fair point, we have added this to the terminology.

    General: It is slightly confusing to have Nonce 1/N1/nonce1 and Nonce
    2/N2/nonce2 used in the document.  Am I right in thinking Nonce 1 and N1 are
    the same with nonce1  being the name of the JSON/CBOR parameter used to carry
    the value?  A few words of clarrification would help.

FP: There is a difference between the three: Nonce 1 is the name of the field, N1 is the value, nonce1 is the parameter's label. If you have suggestion on where to add this, that would be helpful.

    Abstract/s1:  It would be useful to introduce the name of the profile
    (coap_oscore) up front.  It rather sneaks out in s3.

FP: Good point, added.

    s1, para 2: Need to expand CBOR on first use.

FP: Usually yes, but because here it is used as the expansion of COSE, we used the RFC Editor abbreviation expansion, which keeps CBOR non-expanded.

    s2, end of para 3: s/as well/instead/? or s/as well/alternatively/.

FP: Ok, replaced with alternatively.

    s2, para 7 and s6, bullet 2: s/e.g. expiration./for example, expiration./

FP: Ok, fixed.

    s3.1, para 3 and last para: s/reported/shown/

FP: Ok, fixed.

    s3.1, Figure 2 and Figure 3: Appendix F.3 of draft-ietf-ace-oauth-authz reports
    that req_aud was replaced by audence at version 19 of the document.

FP: Good catch! Fixed.

    s3.2, second set of bullets:  Need to expand HMAC and HKDF on first use (not
    well-known in RFC Editor list).  It would also be useful to put a pointer to
    section 11.1 of RFC 8152 here to indicate the allowed HKDF algorithms.

FP: Agreed. We have added it to the terminology section (to expand it) and added a reference to it. Also added the pointer to COSE.

    s3.2, 2nd para after 2nd set of bullets: s/The applications needs/The
    application needs/

FP: Ok, fixed.

    s3.2, 3rd para after 2nd set of bullets: s/parameeter/parameter/

FP: Fixed.

    s3.2, 4th para after 2nd set of bullets: s/the use of CBOR web token/the use of
    a CBOR web token/

FP: Fixed

    s3.2.1:
    OLD:
    IANA "OSCORE Security Context Parameters" registry (Section 9.4), defined for
    extensibility, and is specified below. NEW: IANA "OSCORE Security Context
    Parameters" registry (Section 9.4), defined for extensibility, and the initial
    set of parameters defined in this document is specified below. END

FP: Ok, fixed.

    s3.2.1, below Figure 9: Expand CDDL.

FP: Why? This is not the first time CDDL appears.

    s4.1, para 1 and s4.2, para 2: s/RECOMMENDS to use/RECOMMENDS using/

FP: Ok, fixed.

    s4.1, para 1 and s4.2. para 2: s/as nonce's value/as the nonce's value/

FP: Fixed.

    s4.1, para 7: s/renew/update/  [renew implies the same identifiers are used -
    which is already specified!]

FP: Right, fixed.

    s4.1, last para and s4.3, last para: Does /authz-info have some special meaning?

FP: The same as in draft-ietf-ace-oauth-authz. I haven't changed anything here because we use the same phrasing as that document (which we also reference in the terminology).

    s4.3, para 1: s/ Once receiving the 2.01 (Created) response from the RS/ Once
    the 2.01 (Created) response is received from the RS/

FP: Fixed.

    s4.3, Figure 12:  I assume the Master Salt is supposed to be a CBOR indefinite
    length string encoding (it doesn't say so) as it it consists of the
    concatenated CBOR strings of its component byte strings.  It would be strictly
    correct to start it with 0x5f and end with (0x)ff I would have thought. 

FP: No, this is to prevent attacks based on confusing the delimitation between the two nonces.

Be that
    as it may, I do not understand why the document is concerned with either CBOR
    or JSON/base64 encodings of the master salt.  It may be that I am missing
    something, but I didn't think that the master salt was ever put in a protocol
    message as such (deliberately), but only as one or two of its components such
    that it could be privately constructed at both endpoints once the three
    components had been shared, and was just the concatenation of the data bytes of
    the 3 components rather than involving their lengths.

FP: The OSCORE master salt is constructed from two parts: one part agreed beforehand (if present) and the other part from the nonces sent in the message. Since both parties need to agree on this parameter to derive the same keys, the method of encoding used in the key derivation needs to be defined.

    s6. last para: s/observation/observations/

FP: Fixed.

    s7, para 3: s/RS pass/RS passes/

FP: Fixed.

    s9: It is now usual to give the URLs for the various existing registries as
    normative references.

FP: Added (to the existing one).

    s9.4: I am not aware that a single registry can have different
    review/specfication requirements for portions of its parameter space.  Is it
    seriously expected that there will be significant numbers of requests for
    values in this registry?  My instinct would be to go for specification required
    and advise allocation according to the orign and type of the specification.

FP: Yes, that is done, for example in the COSE registries.