Re: [Rats] Some new comments for CHARRA YANG module

"Panwei (William)" <william.panwei@huawei.com> Fri, 14 August 2020 10:01 UTC

Return-Path: <william.panwei@huawei.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 1CC9F3A0AE5; Fri, 14 Aug 2020 03:01:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 m-Nf7uLWheF4; Fri, 14 Aug 2020 03:01:33 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (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 BF8803A0ADA; Fri, 14 Aug 2020 03:01:32 -0700 (PDT)
Received: from lhreml744-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 9AB6A98E83494F25F606; Fri, 14 Aug 2020 11:01:30 +0100 (IST)
Received: from nkgeml706-chm.china.huawei.com (10.98.57.153) by lhreml744-chm.china.huawei.com (10.201.108.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 14 Aug 2020 11:01:29 +0100
Received: from nkgeml705-chm.china.huawei.com (10.98.57.154) by nkgeml706-chm.china.huawei.com (10.98.57.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 14 Aug 2020 18:01:27 +0800
Received: from nkgeml705-chm.china.huawei.com ([10.98.57.154]) by nkgeml705-chm.china.huawei.com ([10.98.57.154]) with mapi id 15.01.1913.007; Fri, 14 Aug 2020 18:01:27 +0800
From: "Panwei (William)" <william.panwei@huawei.com>
To: "Eric Voit (evoit)" <evoit@cisco.com>, "Shwetha Bhandari (shwethab)" <shwethab@cisco.com>
CC: "rats@ietf.org" <rats@ietf.org>, "draft-ietf-rats-yang-tpm-charra@ietf.org" <draft-ietf-rats-yang-tpm-charra@ietf.org>
Thread-Topic: Some new comments for CHARRA YANG module
Thread-Index: AdZxbUUfWQ8kKtvDQNubGicd9eCWvQABoeIQACqR4uA=
Date: Fri, 14 Aug 2020 10:01:27 +0000
Message-ID: <0be97c3566f642348a123a8f9c4c6f4a@huawei.com>
References: <300450dd9780421aa1b9f5afa88261fc@huawei.com> <BL0PR11MB31228AFC5C808ADE027B12F5A1430@BL0PR11MB3122.namprd11.prod.outlook.com>
In-Reply-To: <BL0PR11MB31228AFC5C808ADE027B12F5A1430@BL0PR11MB3122.namprd11.prod.outlook.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.164.120.6]
Content-Type: multipart/alternative; boundary="_000_0be97c3566f642348a123a8f9c4c6f4ahuaweicom_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/kd_mLQFf_L2Ufu5YBmkjLAIBN7I>
Subject: Re: [Rats] Some new comments for CHARRA YANG module
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: Fri, 14 Aug 2020 10:01:35 -0000

Hi Eric,

Thanks for your reply, please see inline.

Regards & Thanks!
Wei Pan

From: Eric Voit (evoit) [mailto:evoit@cisco.com]
Sent: Thursday, August 13, 2020 10:32 PM
To: Panwei (William) <william.panwei@huawei.com>; Shwetha Bhandari (shwethab) <shwethab@cisco.com>
Cc: rats@ietf.org; draft-ietf-rats-yang-tpm-charra@ietf.org
Subject: RE: Some new comments for CHARRA YANG module

Hi Wei Pan,

From: Panwei (William), August 13, 2020 8:29 AM
Hi Eric,

In modifying the YANG module, I have some new comments about the module.
1. Do we still need the basic-trust-establishment now? It provides the function of retrieving the certificates of TPM2.0. But I think now the certificates can be get from the rats-support-structure and ietf-keystore.

<eric> I can go either way on this.   This RPC could provide some simplifications for TPMs.  Adding Shwetha to the thread to see if there is sufficient differentiation from draft-ietf-netconf-keystore-17 (and its extended family of documents) to justify this RFC.
[Wei] OK. Let's wait for Shwetha's opinions.

2. The styles of challenge input for TPM1.2 and TPM2.0 are different.
      +---x tpm20-challenge-response-attestation {TPM20}?
      |  +---w input
      |  |  +---w tpm20-attestation-challenge
      |  |     +---w nonce-value          binary
      |  |     +---w challenge-objects* []
      |  |        +---w pcr-list* [TPM2_Algo]
      |  |        |  +---w TPM2_Algo        identityref
      |  |        |  +---w pcr-index*       tpm:pcr
      |  |        +---w TPM2_Algo?          identityref
      |  |        +---w (key-identifier)?
      |  |        |  +--:(public-key)
      |  |        |  |  +---w pub-key-id?   binary
      |  |        |  +--:(uuid)
      |  |        |     +---w uuid-value?   binary
      |  |        +---w tpm-name*           string
In the TPM2.0 challenge input, the nonce is put aside and the challenge-objects is a list. So you can challenge for different pcr-lists of different TPMs in one challenge input.
      +---x tpm12-challenge-response-attestation {TPM12}?
      |  +---w input
      |  |  +---w tpm1-attestation-challenge
      |  |     +---w pcr-index*              pcr
      |  |     +---w nonce-value             binary
      |  |     +---w TPM12_Algo?             identityref
      |  |     +---w (key-identifier)?
      |  |     |  +--:(public-key)
      |  |     |  |  +---w pub-key-id?       binary
      |  |     |  +--:(TSS_UUID)
      |  |     |     +---w TSS_UUID-value
      |  |     |        +---w ulTimeLow?       uint32
      |  |     |        +---w usTimeMid?       uint16
      |  |     |        +---w usTimeHigh?      uint16
      |  |     |        +---w bClockSeqHigh?   uint8
      |  |     |        +---w bClockSeqLow?    uint8
      |  |     |        +---w rgbNode*         uint8
      |  |     +---w add-version?            boolean
      |  |     +---w tpm-name*               string
In the TPM1.2 challenge input, if you want to challenge for different pcr-indexs of different TPMs, you need to construct multiple challenge inputs with different nonce values.

<eric>  This is true.  The question I have is for multiple TPM1.2 line cards, whether you ever would really need to have a single query which hits different PCRs.  If yes, then we need the flexibility you are asking.  If no, the restrictions will simplify the code needed to handle the RPC.  (Note that for TPM2.0 we already need the extra complexity as groups of PCRs are hashed together.)

I think it's better to change the style of TPM1.2 to the same one of TPM2.0.

<eric>  If you or others have a business need to have a single query which targets different PCRs from different line cards, I would agree.  Do you really have this?  If yes (or even no), are you willing to create some more XPATH statements which can limit the options so that the exposure of this flexibility doesn't drive code developers to supporting unneeded variants?
[Wei] Actually I have no actual use case for a single query which hits different PCRs. I don't know whether others have. I just raised my point from the perspective of style consistency. But I agree with you that if there is no actual use case the flexibility is useless and a burden. We can keep it the way it is and wait if others have the actual requirement.

3. In the log-retrieval part, the input uses tpm-name as the identifier, but the output uses certificate-name. The certificate-name isn't used in the log-result, should we also use tpm-name as the identifier of output?

<eric> My initial thinking was that perhaps a certificate upgrade has occurred between the last log-retrieval and the current one.  As the existing RPC would notify with the new certificate-name, this could save a step.  However the logs are not really tied to a certificate name, so I will make the change to <tpm-name>.
[Wei] Thanks.

Eric

Regards & Thanks!
Wei Pan