Re: [Rats] Yangdoctors last call review of draft-ietf-rats-yang-tpm-charra-07

"Eric Voit (evoit)" <evoit@cisco.com> Tue, 11 May 2021 19:26 UTC

Return-Path: <evoit@cisco.com>
X-Original-To: rats@ietfa.amsl.com
Delivered-To: rats@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7D33C3A23C2; Tue, 11 May 2021 12:26:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -11.897
X-Spam-Level:
X-Spam-Status: No, score=-11.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=MNoEoLm5; dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cisco.onmicrosoft.com header.b=hVQKtzRr
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 5iHk7POTT2Nv; Tue, 11 May 2021 12:26:00 -0700 (PDT)
Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3405E3A23B1; Tue, 11 May 2021 12:25:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=80069; q=dns/txt; s=iport; t=1620761159; x=1621970759; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=bH2ALKD9+lqBIpdFv5rWC6LttquwZBXUVDGYBX1Ee5k=; b=MNoEoLm5IeWP/+e+Uf471Cudl+6WZkmOLpaXQB+NbrsdHOgjfM8Khvxu Q/gttWSNT/Bh6tuilvMvaJOfUuKfxDdBObrVkogKm26VRIqy548tKplcB M1Z3bN9H3r65Q9SqBqO9tbjEolRUoxwbmO6vrqHRaIJtlOEr0mPxOuSSw U=;
X-Files: ietf-tcg-algs@2021-05-11.yang, ietf-tpm-remote-attestation@2021-05-11.yang, smime.p7s : 17387, 33814, 3975
X-IPAS-Result: A0AsAACs2ZpgmJhdJa1RCRsBAQICAQEFAQEUAQEDAwEBggcDAQEMAYFSIy5+LC42MQIJhDyDSAOFOYh5A484hRWCGoJxgUKBEQNUBAcBAQEKAwEBMggCBAEBhFACgXQCJTcGDgIEAQEBAQMCAwEBAQEFAQEFAQEBAgEGBBQBAQEBAQEBAWiFUA2GRAEBAQIBASMEGQEBNwEECwIBCA4EAy0CAgIwFw4CBAENDQaCYwE4gUUBVwMOERABDj6eFQKKH3p/M4EBggYBAQYEBIE0AVEDgyMYggwHAwaBOgGBUoEohA6FPoEaAhcQHIFJRIEVQ4JfPoF/YwIBgSIREhwFMQKCXTaCCSKCBj4FAQE9GwIJAQMUPxcJAmNYAh0HCwQZIhYUi2mEeQsZgyCIM4EqBAqBbT+IdJBcgRUKgxSBJINvgnmBdIMmhAGFWIZVEINXixKGH5AqlTKJY4IhkxIjhDsCBAIEBQIOAQEGgSNHIoFbcBU7gmlQFwIOjioBDQmDToUUhUlzAhIkAgYKAQEDCXyJTy2BBwExXgEB
IronPort-PHdr: A9a23:Bh6QtxS2Fm9qcFPq2o4+oWeqVtpso6HLVj580XJvo71Le6WnuZ/lO R+X6fZsiQrPWoPWo7JBhvHNuq/tEWoH/d6asX8EfZANMn1NicgfkwE6RsLQD0r9Ia3laiU7G IJJU1o2t32+OFJeTcD5YVCaq3au7DkUTxP4Mwc9Jun8FoPIycqt0OXn8JzIaAIOjz24MttP
IronPort-HdrOrdr: A9a23:xujTN6hn8eI+DaZ2oOUJAnGVhXBQXwV13DAbv31ZSRFFG/FwyP rOoB1L73HJYWgqN03IwerwR5VpQRvnhPlICPoqTMmftWjdySWVxeRZjbcKrAeQYBEWmtQtsJ uINpIOdOEYbmIKzPoSgjPIaerIqePvmMvD6IuurAYOcegpUdAc0+4TMHf8LqQCfng/OXNPLu vk2iMonUvFRV0nKuCAQlUVVenKoNPG0Lj8ZwQdOhIh4A6SyRu19b/TCXGjr1cjegIK5Y1n3X nOkgT/6Knmmeq80AXg22ja6IkTsMf9y+FEGNeHhqEuW3bRY0eTFcZcso+5zXQISdKUmREXeR 730lEd1vFImjbsl6eO0ELQMkfboW4TAjTZuC6laDPY0LzErXQBepF8bUYzSGqF16Lm1+sMip 6jlljpxKZ/HFfOmj/w6MPPUAwvnk2ooWA6mepWlHBHV5ACAYUh4LD30XklW6voJhiKorzP0d Meev0078wmPW9yr0qp9lWH5ebcEUjbMi32NnTqi/blmgS+xkoJunfw7PZv6Uvo2qhNOaV52w ==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.82,291,1613433600"; d="yang'?p7s'?scan'208";a="693170149"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 11 May 2021 19:25:58 +0000
Received: from mail.cisco.com (xbe-aln-001.cisco.com [173.36.7.16]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTPS id 14BJPv9u016410 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Tue, 11 May 2021 19:25:57 GMT
Received: from xfe-rcd-005.cisco.com (173.37.227.253) by xbe-aln-001.cisco.com (173.36.7.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 11 May 2021 14:25:57 -0500
Received: from xfe-rcd-004.cisco.com (173.37.227.252) by xfe-rcd-005.cisco.com (173.37.227.253) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 11 May 2021 14:25:56 -0500
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xfe-rcd-004.cisco.com (173.37.227.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3 via Frontend Transport; Tue, 11 May 2021 14:25:56 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CcffAt6EaHdNwHZYDusujpbDgzVCfW2N/COOR2vy9EnKzTKb8yLRIuFc1+Gqmd14q1D/JJooPSHNbiL4vfuKfM9kExaEb/QkXYu/4fcefZLpUcKeDYwBVZgCURFFdcYzpbJmD+WffJVGebVuC30Pz2+gTF0djq8u+mY5ineoFIM+IbHufnW6PR8xpHkFqvJq2tUoVGXEENocOD7QCgKTzVP5q17Qezy3nzh/55VuDbUDwm+mNbBqX7e16AsVwOWGJdnG7QzrkvqWlZ9Qvg/1aZgZh3NaE7UGZPLcXLr9UXuXZb1Ut5H1CcQymDBaMU/w6VoY/zECxwP07P9Fn1fM9g==
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=SIgfKqU0QdWbWEP+gMPMuUOVUMeTxZI3mOOefNIvdeQ=; b=kvLyproFcLuSUhcrFyAAQnMfKRzuLoxa7a9+GtSaSUkTu3DD7Tthwum16Yti3+PLKSsQqATYuyKtpqL4i5y8a6eSc4u3CphNEUZGsjAsPDY4jX5km1x0/M9n9IIu/428iOZKfPZWRPbj9bAZ6qwD3R3Qr94k/6k10oMvqdpICxS6kOnob05JaHyOazEnwNkuy+jTfp5mbmj7iO/uWmhu3fPb5Ro9zXADiQK8e3ngog9Cob8i/S/xvOnEDeGxIL8JBw1wtIat65uDkcz3uhkjlguF6q40gfz3nnjIRtCfRRF0Y7Fxc106l6gBZ5651ydUTj0Ou2uaWfu1b0Lc59h22A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SIgfKqU0QdWbWEP+gMPMuUOVUMeTxZI3mOOefNIvdeQ=; b=hVQKtzRrBjs3SmaJhim83iSLlPyLzg209hNyulJV8RekXhh87F3UO5gvWGnKtHQBNFqQ58Hl8xCVSYDh0f2lfGLskzcZJozOuQvbbNHZwHVHg6bhDguEMqnkgPAmHUJPBhdN0NzFR68G9yHMMHQV7tnZMOnK49gKHISlQtt6XcM=
Received: from BL0PR11MB3122.namprd11.prod.outlook.com (2603:10b6:208:75::32) by MN2PR11MB4744.namprd11.prod.outlook.com (2603:10b6:208:263::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Tue, 11 May 2021 19:25:55 +0000
Received: from BL0PR11MB3122.namprd11.prod.outlook.com ([fe80::a56e:106:4419:6b23]) by BL0PR11MB3122.namprd11.prod.outlook.com ([fe80::a56e:106:4419:6b23%6]) with mapi id 15.20.4108.032; Tue, 11 May 2021 19:25:55 +0000
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
CC: "draft-ietf-rats-yang-tpm-charra.all@ietf.org" <draft-ietf-rats-yang-tpm-charra.all@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "rats@ietf.org" <rats@ietf.org>
Thread-Topic: Yangdoctors last call review of draft-ietf-rats-yang-tpm-charra-07
Thread-Index: AQHXRPFcA4dYY43LCU+F25QAOIJ4j6reREvA
Date: Tue, 11 May 2021 19:25:55 +0000
Message-ID: <BL0PR11MB3122AB6B0F13250BE6118618A1539@BL0PR11MB3122.namprd11.prod.outlook.com>
References: <162057811715.30427.14064988680214216543@ietfa.amsl.com>
In-Reply-To: <162057811715.30427.14064988680214216543@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [108.18.141.61]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 268d53e4-937b-4daf-608e-08d914b298fb
x-ms-traffictypediagnostic: MN2PR11MB4744:
x-microsoft-antispam-prvs: <MN2PR11MB4744E43B6F66BB237223CF69A1539@MN2PR11MB4744.namprd11.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: lfgbWobm5GBmwB+pf27ypJ8XMFcIg+ojD9ijNiQX6iJLBcK0TrqgVOOjyf2qTdVdDDI/8b971FwPsYjoDXYJH+eWxwXXsX0mkaP7nQQ5MSk1rg8AkiruTMfmMuCJZA0s6B8iEbYDgLzI6WPoVueOMmgkGhRY2YCkgS7qq2IyMc+pijPowHwplhAnVK0+ZinfrJTZd29GjhaaiLtM4ow5yLCx/DrEKS1BQjLTmvJF6bGh2dG/p+AjjICrJoWkxXeBaxUadSYjU4Y5pPAHooDpXAoQEX4ozjYnctmFW6Md4EPbq8k4HFhibO2J48GTpj8Z8FJWekxGNxf3+SytvSubAiqnPhHn/rdD3lnoGDx8EeYJ01Hw34xfoMzTUVpMw1hjyZQzWdkTQpr/cwxLsEHKFF6hUaDUtpXBiOZeRuQkZTnqO+jUuXsXTQNCCMWq42YM3PAzFkA1dHQ9LZYEv9MZxjamuWkQ7b9JxR/XbYuju3ZQcEKraGz2+WOjVJAC3bgPDI38lALGOjcsMxUiiUvlrWBeWHbpPIC+968tQmelGjyDg0ofSToZR3I7I6PBxaZwEhXu+y3TX9JThlufZQiDnBc9FFZsYL+xe0q+/t/6/X37hE4IsFj6rxU9lStKztR9bYcNb6yys8xePX55UBnAJX0zuh9hJ8FyINHCpOj+76jE70ZpR5W2qpvveyJoVpAYx6HxhtmvW2ymngscGaI9tUKIrwNJrM5ssg9vm57Tg52pjq7jSC470d9Ejahe6wvS0i1JqB9tNGdXQC1t+7t/Xg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3122.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(39860400002)(346002)(376002)(136003)(396003)(4326008)(26005)(316002)(19627235002)(86362001)(30864003)(71200400001)(2906002)(55016002)(52536014)(6506007)(83380400001)(9686003)(76116006)(7696005)(66446008)(186003)(8936002)(8676002)(478600001)(38100700002)(99936003)(122000001)(966005)(66946007)(54906003)(64756008)(33656002)(110136005)(66616009)(66556008)(66476007)(5660300002)(15398625002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: prRY65b51q737CYC40TzB32gv+ZqLgiV2MR3eo5PCJJGzDJrT4eVR2/U3CeUYY1kkpYaVbKEuqdXzHkq9d8mWZkbW7lqUF+0dhDe22ddOq0JYuYyxACUxnUKqvSp13EbLRRUfZwLwCZn0px/vB3SsfGUEwbuQ+RMfRGDi/UfhZvKP5a0jSWSgFeogzUqa+ZesBA0sIJAZKfVeOOR8YpXd2xrir/eas9TgDrBwy0+fbwXLWtigukK4D7178NsJwkxX3sor5QmtNIDsvSI6h5dP3xI20GUXMS+jsw5FewfaVWJma/ZmEFl3k2/ebun4YlliP4cTc687YGCELVulfVxelssKA8wsgQGwdcts8MlpllX02CoJMzuHSr74aWW0NEz5cuRwEqtZsTjzCfV3S6CT+TVrdre56Uv3fV2jN/rtCV816fzpDhIMLPZB6uR/DJqustSqL7OMTmbeEjEM0A0Kch32/I7rDnru3Q2al/pnMXWuF/7D6DlRVCBgV6nOJePyW0ZnF/OamkVruRYmSXjflUUDR+d/S8iOJQi6o5Tm6vb0FeYi8QX3P46JULcihT0tkdgjuqMm9fyDsGe8qxPldMTDrbomPXRne0jKsbUy8TZSPK0Zfs38b7jZX3T6Gu4Sy7b7jcsjNYGscn3W4gNDWIwANMNv6j/3+SdLEU9GxXjF3xHf0+hc4x5PccYWUCVqHgYfnCAf/kE+pDxO8z67t/5CFeeUvhgFIeW3Bn+mnnZsdE1qbjuQOOtDPA9NE/Z72sYaANZXD3YemYm7y6Hz+F/LEtMlq3OoigzqUaIf/h1kFNR7AcMnyO0jIqmqZBhVBGPN0cYWDT0j0e8YXbJMMFLXaexOFyYiWNc91MgQie9GWcbrYTMbPV0mI/EHBZcLUT7nTxNcUwJ0d9PIvJkNbHY/jwDnZjkQ0+DSpaRxPLrB8TOJZFBrIhviAJhkVZqsRyQDZXEOav0oErB1iAOOgy3OPY19pISwPHqmiEbbQWoaw4i1/3S93xiSmWtgosIUvVkhU09Ilc3GkAkGqXmAa3M0G0M+YmfLeXtEy8NYlbsfWVtMYnGvRj2pYT2Qz8X2FGy3UeyYcwiNphO6A+ep7BViPe+gEC/PCQhBWQFE7IUXJaLW1EOu2y74NI1nnmZmIAk2K6tAnfhFc+5roJUSno3Qu0TJc8HViFnomtSNqyeOaWLNf95cp+0ciwy0LPWtwEcdp3Ivak24+5dLT+QybzYEvJDCVIxv3cdzNz1A6jZiHnNz7zMSoY8YtMyig2APS7aIPleXwckBihxr/Aex/7OfjkBGoLe375IdwW9AB33omPsS3ZshqcFJKIRWb7O
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_0DC7_01D74678.569A1F80"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3122.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 268d53e4-937b-4daf-608e-08d914b298fb
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2021 19:25:55.1851 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: lXCwQUTK3OBmpyXKD+XR9jCawcoQDzXm1xkkcvJx3Yhu4MgQQfLTjhlO0KRETxTz
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4744
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.16, xbe-aln-001.cisco.com
X-Outbound-Node: rcdn-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/xzcjDbMIObdyCbUyWqsWCODJ34c>
Subject: Re: [Rats] Yangdoctors last call review of draft-ietf-rats-yang-tpm-charra-07
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Remote ATtestation procedureS <rats.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rats>, <mailto:rats-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rats/>
List-Post: <mailto:rats@ietf.org>
List-Help: <mailto:rats-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rats>, <mailto:rats-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 May 2021 19:26:10 -0000

Hi Mahesh,

Thanks for the detailed review.   Thoughts in-line, and attached is a full 
version of the models which embeds all the changes I made below.

> From: Mahesh Jethanandani, May 9, 2021 12:35 PM
>
> Reviewer: Mahesh Jethanandani
> Review result: On the Right Track
>
> Status:
>
> This review is looking at the draft from a YANG perspective. Since -03 
> version of
> the draft, which I did an early review on, this document has come a long 
> way.
> With that said, I have marked it as On the Right Track, because of some of 
> the
> TODO items that the authors have left in the model, the fact that the IANA
> section is not filled out, and some of the discussion in this review.
>
> Summary:
>
> This document defines a YANG RPC and a minimal datastore required to 
> retrieve
> attestation evidence about integrity measurements from a device following 
> the
> operational context defined in 
> [I-D.ietf-rats-tpm-based-network-device-attest].
>
> General:
>
> Please run 'pyang -f yang' on the model for it to reformat the model per 
> IETF
> style and to fix some of the indentation and quoting issues in the model.

Done

> The draft references an acronym PCR, and several others, but does not define 
> or
> reference it. Suggest that a Terminology Section be added to the draft that
> either defines acronyms used in the draft or references them if they have 
> been
> defined in another draft.

The initial introduction paragraph does generically reference terminology from 
draft-ietf-rats-architecture and 
draft-ietf-rats-tpm-based-network-device-attest.   But more explicit 
references could be helpful.  More on what is included is detailed below:

> It would also help to understand some of the terms
> being used in the draft. For example, what is Attestation Key, and how is
> different from Attestation Key Certificate (AC), or Attestation Key Cert, 
> and
> Initial Attestation key (inconsistent use of capitalization) Certificate 
> type or
> Local Attestation Key Certificate type.

I have added the following text to the Intro:

"Specific terms imported from {{TPM2.0-Key}} and used in this document 
include: Endorsement Key (EK), Initial Attestation key (IAK), Local 
Attestation Key (LAK)."   Where {{TPM2.0-Key}} points to:
https://trustedcomputinggroup.org/wp-content/uploads/TCG_IWG_DevID_v1r2_02dec2020.pdf

In addition, I have changed all 'Cert' to 'Certificate" within the model.  I 
also have installed a specific reference to each of the enums in the model:

                enum endorsement-certificate {
                  value 0;
                  description
                    "Endorsement Key (EK) Certificate type.";
                  reference
                    "https://trustedcomputinggroup.org/wp-content/
                     uploads/TCG_IWG_DevID_v1r2_02dec2020.pdf
                     Section 3.11";
                }
                enum initial-attestation-certificate {
                  value 1;
                  description
                    "Initial Attestation key (IAK) Certificate type.";
                  reference
                    "https://trustedcomputinggroup.org/wp-content/
                     uploads/TCG_IWG_DevID_v1r2_02dec2020.pdf
                     Section 3.2";
                }
                enum local-attestation-certificate {
                  value 2;
                  description
                    "Local Attestation Key (LAK) Certificate type.";
                  reference
                    "https://trustedcomputinggroup.org/wp-content/
                     uploads/TCG_IWG_DevID_v1r2_02dec2020.pdf
                     Section 3.2";
                }

Note that this reference document points to {{TPM2.0-Key}}, and this document 
was formally approved by TCG at the end of April 2021.

> Same for Attester.

I have now explicitly referenced the Attester from the 
draft-ietf-rats-architecture.

> Why reference features with angle brackets, e.g. <TPMs>, <certificate-name>?
> Same for container names <rats-support-structure>. Please replace all angle
> brackets with " or ' quotes. Note, NETCONF operations use angle brackets, so
> having attribute names with angle brackets is confusing.

Throughout the entire document, all angle brackets have been converted to 
single quote characters.

> Please remove underscores and uppercase characters from all identifiers. See
> Section 4.3.1 of RFC 8407 for naming conventions for identifiers.

*Partially done*.  Now the only time we use upper case and underscores is when 
there is a direct 1:1 mapping between a specific TCG defined object, and a 
charra object.  By showing this name equivalence, it is felt that this would 
make the definition and domain inheritance explicit.

> I see tpm, and TPM being used inconsistently. Suggest that all references to 
> TPM
> be replaced with tpm.

I have downshifted all the TPM used in YANG object names, with the *exception* 
of where there is a 1:1 mapping to specific TCG defined objects

> Also in general attribute names do not need to be prefixed with the parent
> name. E.g.
>
>    +--rw tpms
>       +--rw tpm* [tpm-name]
>          +--rw tpm-name                string
>          +--ro hardware-based?         boolean
>          +--ro tpm-physical-index?     int32 {ietfhw:entity-mib}?
>          +--ro tpm-path?               string
>          +--ro compute-node            compute-node-ref {tpm:TPMs}?
>          +--ro tpm-manufacturer?       string
>          +--rw tpm-firmware-version    identityref
>
> could easily be replaced by:
>
>    +--rw tpms
>       +--rw tpm* [tpm-name]
>          +--rw name                    string
>          +--ro hardware-based?         boolean
>          +--ro physical-index?         int32 {ietfhw:entity-mib}?
>          +--ro path?                   string
>          +--ro compute-node            compute-node-ref {tpm:TPMs}?
>          +--ro manufacturer?           string
>          +--rw firmware-version        identityref
>
> and
>
>          +--rw certificates
>             +--rw certificate* [certificate-name]
>                +--rw certificate-name            string
>                +--rw certificate-keystore-ref?   ->
>                /ks:keystore/asymmetric-keys/asymmetric-
> key/certificates/certificate/name
>                +--rw certificate-type?           enumeration
>
> could easily be replaced by:
>
>          +--rw certificates
>             +--rw certificate* [certificate-name]
>                +--rw name                        string
>                +--rw keystore-ref?               ->
>                /ks:keystore/asymmetric-keys/asymmetric-
> key/certificates/certificate/name
>                +--rw type?                       enumeration

All the prefixing reductions suggested in the three trees above have been 
made.

> What is cryptographic-strength algorithm? This is the first and only 
> reference to
> a term that has not been explained before.

I have rewritten the definition of "nonce" to:

      description
        "A cryptographically generated random number which should
         not be predictable prior to its issuance from a random
         number generation function. The random number MUST be
         derived from an entropy source external to the Attester.";


> s/independent from the/independent of the/

Fixed with above rewording.

> Have the models in the draft been validated with pyang and yanglint? I tried 
> to
> debug the following issue, but the number of groupings, and groupings within
> groupings made for difficult reading of the model.
>
> $ yanglint -p ../<where ever the dependent models are>/ ietf-tpm-remote-
> attestation@2021-03-16.yang err : Invalid value "TPM_ALG_SHA256" in
> "TPM20-hash-algo" element.
> (/ietf-tpm-remote-attestation:TPM20-hash-algo) err : Identity
> "TPM_ALG_SHA256"
> is disabled by its if-feature condition.
> (/ietf-tpm-remote-attestation:TPM20-hash-algo) err : Invalid value
> "TPM_ALG_SHA1" in "TPM12-hash-algo" element.
> (/ietf-tpm-remote-attestation:TPM12-hash-algo) err : Identity "TPM_ALG_SHA1"
> is disabled by its if-feature condition.
> (/ietf-tpm-remote-attestation:TPM12-hash-algo) err : Module "ietf-tpm-
> remote-attestation" parsing failed.
>

Interesting.    Both of the identities 'TPM_ALG_SHA256' and 'TPM_ALG_SHA1' 
have dual if-features set.  I.e., the YANG contains the line:
    if-feature "tpm12 or tpm20";
in the model  ietf-tcg-algs.yang

It looks like this an error in yanglint.   The error doesn't appear when I run 
the yanglint on https://yangcatalog.org/yangvalidator/validator

> Is both a when and an if-feature statement needed here? Isn't the setting of
> 'tpm-firware-version' to tpm12 not already indicate which version is being
> supported?
>
>       leaf-list tpm12-asymmetric-signing {
>         when "../../tpm:tpms" +
>              "/tpm:tpm[tpm:tpm-firmware-version='taa:tpm12']";
>         if-feature "taa:TPM12";

Yes, this is redundant.  I have removed the 'if-feature' in the four places 
where this recurs.

*Separate topic on YANGLINT*

What I do get from yanglint is:

warn: Incompatible types of operands "name" and "pcr-index" for comparison.
warn: Previous warning generated by XPath subexpression[118] "name = 
current()] an".
warn: Incompatible types of operands "name" and "pcr-index" for comparison.
warn: Previous warning generated by XPath subexpression[118] "name = 
current()] an".

These warnings suggest that the compound XPATH constraint which you suggested 
has a type mis-match?    I thought two booleans were the supposed to generated 
within:

      must '/tpm:rats-support-structures/tpm:tpms'
         + '/tpm:tpm[name = current()] and '
         + '/tpm:rats-support-structures/tpm:tpms'
         + '/tpm:tpm[tpm12-pcrs = current()]' {
        error-message "Acquiring this PCR index is not supported";
      }

Any suggestions would be appreciated here.

> Change Copyright year in the model from 2020 to 2021.

Done.

> Nits:
>
> s/Not a platform supported TPM20-hash-algo/This platform does not support
> TPM20-hash-algo/ s/Not a platform supported TPM12-hash-algo/This platform
> does not support TPM12-hash-algo/ s/available for use the Attesting
> platform/available for use by the Attesting platform/

Fixed

> Could this description statement be improved?
>
>                  description
>                    "Type of this certificate";

Changed to : Function supported by this certificate from within the TPM.

> Comments:
>
> Security Considerations section:
>
> Please separate out nodes that are read/write from those are read only or 
> are
> related to RPC.
>
> Not clear on why the following is a security issue:
>
>    *  <tpm-name> - Although shown as 'rw', it is system generated
>
> For that matter, why is the following a security issue and not something 
> that is
> highlighted in the model itself?

This was driven by suggestions from Juergen as the tpm-name is used to 
validate configuration.  Therefore it must be shown as 'rw' although it is 
really read only.   As a result of you question, I added text on this:

"Although shown as 'rw', it is system generated.  Therefore it should not be 
possible for an operator to add or remove a TPM from the configuration."


>    RPC: <tpm12-challenge-response-attestation> - Need to verify that the
>    certificate is for an active AIK.

Changed text to: "Need to verify that the certificate is provided is able to 
support Attestation on the targeted TPM."


> A idnits run of the draft continues to reveal a few issues. Some of them are
> issues with the tool itself, i.e. outdated references, but others need 
> attention.
>
>     Checking boilerplate required by RFC 5378 and the IETF Trust (see
>   https://trustee.ietf.org/license-info):
>   ---------------------------------------------------------------------------
>
>      No issues found here.
>
>   Checking nits according to 
> https://www.ietf.org/id-info/1id-guidelines.txt:
>   ---------------------------------------------------------------------------
>
>      No issues found here.
>
>   Checking nits according to https://www.ietf.org/id-info/checklist :
>   ---------------------------------------------------------------------------
>
>   ** There are 40 instances of too long lines in the document, the longest
>      one being 53 characters in excess of 72.
>
>   Miscellaneous warnings:
>   ---------------------------------------------------------------------------
>
>   == Line 180 has weird spacing: '...r-index    pcr...'
>
>   == Line 243 has weird spacing: '...te-name    cer...'
>
>   == Line 275 has weird spacing: '...-number    uin...'
>
>   == Line 332 has weird spacing: '...version    ide...'
>
>   == Line 336 has weird spacing: '...sh-algo    ide...'
>
>   -- The document date (April 2021) is 24 days in the past.  Is this
>      intentional?
>
>   Checking references for intended status: Proposed Standard
>   ---------------------------------------------------------------------------
>
>      (See RFCs 3967 and 4897 for information about using normative
>      references to lower-maturity documents in RFCs)
>
>   == Missing Reference: 'TPM20-hash-algo' is mentioned on line 335, but not
>      defined

Not sure what this refers to.

>   == Outdated reference: A later version (-12) exists of
>      draft-ietf-rats-architecture-11
>
>   ** Downref: Normative reference to an Informational draft:
>      draft-ietf-rats-architecture (ref. 'I-D.ietf-rats-architecture')
>
>   == Outdated reference: A later version (-02) exists of
>      draft-ietf-rats-reference-interaction-models-01
>
>   ** Downref: Normative reference to an Informational draft:
>      draft-ietf-rats-reference-interaction-models (ref.
>      'I-D.ietf-rats-reference-interaction-models')
>
>   ** Downref: Normative reference to an Informational draft:
>      draft-ietf-rats-tpm-based-network-device-attest (ref.
>      'I-D.ietf-rats-tpm-based-network-device-attest')

As this are auto-generated references, I won't worry about them here.


>   -- Possible downref: Non-RFC (?) normative reference: ref. 'TCG-Algos'
>
>      Summary: 4 errors (**), 0 flaws (~~), 8 warnings (==), 2 comments (--).
>
>      Run idnits with the --verbose option for more detailed information
>      about the items above.
>

Latest results below

ietf-tpm-remote-attestation@2021-05-11.yang
XYM Extraction
No warnings or errors
Pyang Validation
 /var/yang/all_modules/ietf-inet-types@2021-02-22.yang:493: error: keyword 
"length" not in canonical order (see RFC 6020, Section 12)
Pyang Output
No warnings or errors
Confdc Output
ietf-tpm-remote-attestation@2021-05-11.yang:645: warning: The 'must' 
expression should have a tailf:dependency. If is doesn't, it will be checked 
for every commit.
ietf-tpm-remote-attestation@2021-05-11.yang:692: warning: The 'must' 
expression should have a tailf:dependency. If is doesn't, it will be checked 
for every commit.
yanglint Validation
warn: Incompatible types of operands "name" and "pcr-index" for comparison.
warn: Previous warning generated by XPath subexpression[118] "name = 
current()] an".
warn: Incompatible types of operands "name" and "pcr-index" for comparison.
warn: Previous warning generated by XPath subexpression[118] "name = 
current()] an".
yangdump-pro Validation
No warnings or errors


ietf-tcg-algs@2021-05-11.yang
XYM Extraction
No warnings or errors
Pyang Validation
No warnings or errors
Pyang Output
No warnings or errors
Confdc Output
No warnings or errors
yanglint Validation
No warnings or errors
yangdump-pro Validation
No warnings or errors

validator version: 1.1.0, xym version: 0.5, pyang version: 2.4.0, confdc 
version: confd-7.5, yanglint version: yanglint SO 1.10.7, yangdump-pro 
version: yangdump-pro 20.10-6

Thanks again,
Eric