Re: [Rats] I-D Action: draft-ietf-rats-eat-15.txt

Laurence Lundblade <lgl@island-resort.com> Mon, 03 October 2022 18:02 UTC

Return-Path: <lgl@island-resort.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 D04EBC1524D1 for <rats@ietfa.amsl.com>; Mon, 3 Oct 2022 11:02:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.907
X-Spam-Level:
X-Spam-Status: No, score=-1.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FahTwi1HJh2A for <rats@ietfa.amsl.com>; Mon, 3 Oct 2022 11:02:20 -0700 (PDT)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2118.outbound.protection.outlook.com [40.107.223.118]) (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 DCC2CC1524DD for <rats@ietf.org>; Mon, 3 Oct 2022 11:02:19 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KTir1Pj6nwLWT3EL3UVQw0SFQzUAUWwWQurPHJeQPcAqIH3x5dreXWoQVaRBMXjXOxxvyTIbqn/LN8GMszSppYPvhO4qkZxgVxw4vEtzFDqwS4B/+dH1tk6SaO9nwD+qFQg1Ss7tlHy4DllQS9J/gIqeYtEHX000nX+G7v+VjhdlIWAK38dLBg+iWipWu8DZySiFO8PpWSien5uhZPsUe1iTQbVUWWWcB/1NLpNMHGGBDxeDFVVvFY4rRXdiPop2BRSQRxAVtlpO6f8gJD4PgHpXtB1Uash7/B1Ly8uBbFzcksUExVssOtUIusTDKRm3AiVwzyjMq+wk9kGzYMqQGQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xWJWtfbCqQosnOUIdHkf3LE/6ATQLTuKezdfXd4iDM0=; b=G936c+UT9QAJht+/hnMPGaPs0TOPVP+kuhDniwGsbDSHYPNaJFd41WoMnP5qPj2Zf2ILYWTsicSvmh1Xv2DVtmqPIUtnr6iGu/nh52Pv/WeHhbWKVpqkSTg5GkXmXrpdR1fQdruJV4IS1xMyWIe/ylPA/ilO354od91DcEckJQ1h/ncXTQeHW2WeIDisZWw9L6h2J5a1X/p84H4euWgtZ8yidC0zifjim8fRyXIDwFNoKQAtuNiY64IZdyEwSJ8cAXGoKmJlUe5GO5zH21Uk3mkUe3lLRsP0laXgPOpUmi2o6pxMLiOvEiURFAoBCp5XpLQ6J7wjImEeClTeEiV7VQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=island-resort.com; dmarc=pass action=none header.from=island-resort.com; dkim=pass header.d=island-resort.com; arc=none
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=island-resort.com;
Received: from PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8) by DM6PR22MB2134.namprd22.prod.outlook.com (2603:10b6:5:2b6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.30; Mon, 3 Oct 2022 18:02:15 +0000
Received: from PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::20fc:7118:33f4:ffaf]) by PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::20fc:7118:33f4:ffaf%5]) with mapi id 15.20.5676.028; Mon, 3 Oct 2022 18:02:15 +0000
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <49C03803-8670-4B76-8F16-1B7FBED47349@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_BE393502-0E7A-4891-A6A1-5B54815E0D2C"
Date: Mon, 03 Oct 2022 10:59:30 -0700
In-Reply-To: <869853.1664709443@dooku>
Cc: rats@ietf.org
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <166466905854.59321.12818330000633725430@ietfa.amsl.com> <869853.1664709443@dooku>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
X-ClientProxiedBy: BYAPR07CA0041.namprd07.prod.outlook.com (2603:10b6:a03:60::18) To PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: PH7PR22MB3092:EE_|DM6PR22MB2134:EE_
X-MS-Office365-Filtering-Correlation-Id: dd611a7e-863c-4575-bc6a-08daa5696732
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: bEt0RffS0SQPPRTqRyWe4g9puYHJPORivYBWLdc6CDWUQ4vOK4uM9kLeUcRHdMsm442OdL2qH5snagWfgx39zHw3aO9LuoLWSkW1DPzF7pTKQ5iXNvJy+I3yF4j6aOx56u8bmCic7PcFKcTOcUM7xdgHt2l3ITOyfuCsM8r+nWWm4tyNcqQeH63fcDPDCPNqYr1YvJDRcIi2thml20nhq3NA1HNNZASHT+EdF0KfC1F4Err5ZfR//vZUlS1czePJa1UCed8KMbY2XOiYunrfngKNin/LpVtT9CuEkI3Bq3uRQuyMQrBgcRBl2P6QTYRXArSK1kItIF3kBeH+6NCRwElxxbm5P0UzvUahyLl5wa55nIHSodd4Bb5eMrFvFKioVMJrbGATcb3QNqMyhO5g3ez+fszSNR469mG5ohchC7SVwFNw4ZHeHXGaepeHZSvOK3pJE3ZvwO2GxqAUQcMTDm5n/4HWEsCMC/qQFF17eH5bpi4G3DLAuYnbTlDsayzr8huieIlpBjR7ES/OYOWxFIUxMwCBUg+kHegiskJfQdnqhv+bW9ntL/tWzr+d6LEfBlQtBycd7sBE2RNNb5BDdlB7YxOBjEXtVg1r+FgwG0NP99V7A5Fi8ViQaQ0AxMJEqkjsTjK0rcVroooR2JRcTxHoab4QsXNX1ewFJCbb6eZn2mBrT+ctgtmTokrE7xbnAGLsUCMPXvA5I8vPQjbhxDJ9iC3qhZ3k5jRED9nkMrV7hEHStiaen0tcNslETmLPnCqQmCirHqiB8JVVUEiAODlCVJlh6rHOEdOH9A6jRhfsRC0WkDbZruKiWWCzL8gfN3o1XWzNwcCD3u3ANdLKvkljmLj/E4VDFT82JF/uV3M=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR22MB3092.namprd22.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(39830400003)(346002)(396003)(376002)(136003)(451199015)(66556008)(66476007)(66946007)(4326008)(8676002)(2906002)(186003)(83380400001)(41300700001)(36756003)(6512007)(26005)(2616005)(33656002)(966005)(6486002)(478600001)(53546011)(38100700002)(38350700002)(52116002)(6666004)(33964004)(86362001)(166002)(316002)(6506007)(30864003)(8936002)(5660300002)(66574015)(21615005)(45980500001); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: mYDRf/pvLzAQy8jcPn9PiogBqmQd5wJLnTm4BawTA0djJf/Uz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hMUD4EVF9fUhlJtXqlHbfVNi51gdxKmqX1ET7lF5CSlcg+i2zCIkb/uabEt5nqit6unIYbjUwMm+AsKpqPL24mXXG/aCOHbFhEGgtVj3GXFq2WTOeeweeYCUuDrtEuMNI8fLK6hG6szNzRZG0k2u6qvFdd0g5XfIVswal/CvMexkD5kcKvj3Pjga/IEuQqL1T9kr9YoVkHxV2G7oJ47hGK4iMQhJ01vAwaTiFDZuJ8SNPpv51FBLphp8KnbK4r++wXM9k4Mt2ILvN2WvcQHSwMRjwomx+q06IqassmaTs7499Qmj0rbzVZVrPwLiLRXAkduLozBUrbksliWJhJkmbHWgqs7WrDpdBzRWwLVTrrLx8FVE7/w6MSnxWnH/BnBeHZKdA8Ubiw9bFNA3dliGIAHsTNb4j4csMgvJVW9urE+QhfzxnF6ZfR2JO9Wh/zzWq2l0DsOt0gnp2L8
X-OriginatorOrg: island-resort.com
X-MS-Exchange-CrossTenant-Network-Message-Id: dd611a7e-863c-4575-bc6a-08daa5696732
X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3092.namprd22.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2022 18:02:14.9279 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ad4b5b91-a549-4435-8c42-a30bf94d14a8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: CW2V7943fRneK/EDSAJ66PWisBzPG2FzYsWZx09b8+sFmNalG9x4hSuay/BusL1atA0BMr50KGKqrSWtjJph0w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR22MB2134
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/MwsdPEMwr3L17WmkoZD9lDRtRVo>
Subject: Re: [Rats] I-D Action: draft-ietf-rats-eat-15.txt
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.39
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: Mon, 03 Oct 2022 18:02:23 -0000

Thank you for the quick turn around review!

Comments below.


> On Oct 2, 2022, at 4:17 AM, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> 
> 
> internet-drafts@ietf.org wrote:
>> The IETF datatracker status page for this draft is:
>> https://datatracker.ietf.org/doc/draft-ietf-rats-eat/
> 
>> There is also an HTML version available at:
>> https://www.ietf.org/archive/id/draft-ietf-rats-eat-15.html
> 
>> A diff from the previous version is available at:
>> https://www.ietf.org/rfcdiff?url2=draft-ietf-rats-eat-15
> 
> I wish I could read the diff.
> You did not fix the too-long lines.
> 
> I edited -14 and -15 to truncate the long lines in the appendix, and put that
> onto github (since iddiff has a limited set of places it will read from), and
> readers can try:
> 
> https://author-tools.ietf.org/diff?url_1=https://raw.githubusercontent.com/mcr/eat/eat-diff-short/draft-ietf-rats-eat-14.txt&url_2=https://raw.githubusercontent.com/mcr/eat/eat-diff-short/draft-ietf-rats-eat-15.txt
> 
> iddiff is not yet as good rfcdiff, and generates some additional diffs around
> page breaks and the like.

I can see the diff between 14 and 15 is not good now and will fix it for 16 (aiming for London cutoff date).

I try to work to priority and didn’t see the long lines as a priority because the diff between draft-13 and -14  <https://www.ietf.org/rfcdiff?url1=draft-ietf-rats-eat-14&url2=draft-ietf-rats-eat-13&difftype=--html>seems OK and only you had mentioned it. That is, I did not ignore your previous comment. When I checked it didn’t seem like a general problem.


> 
> Some comments:
> 
> 1) you've changed the section names of the claims:
> 
> Universal Entity ID Claim (ueid) ->  ueid (Universal Entity ID) Claim
> I see why this might be a good idea, but it sure isn't pretty.
> I will think on this.

It is to align with the way CWT and JWT are authored.


> 
> 4)"This document registers no media or content types for the
>   identification of the type of EAT, its serialization format or
>   security envelope.  That is left for a follow-on document."
> 
> I'm okay with this, but maybe to say,
>    That is left for to follow-on documents, or may be defined by
>    by documents that define EAT Profiles.

Seems like a good improvement.


> 
> 5) Can Detached EAT Bundles contain a mix of CWT and JWT?
>   Up in the introduction, it seems to imply this, but I think section 5 says no.

The intent is that you can have these two:
- CBOR-encoded bundle that carries CBOR-encoded detached Claims-Sets
- JSON-encoded bundle that carries JSON-encoded detached Claims-Sets
but not these
- CBOR-encoded bundle that carries JSON-encoded detached Claims-Sets
- CBOR-encoded bundle that carries both CBOR-encoded and JSON-encoded detached Claims-Sets
- JSON-encoded bundle that carries CBOR-encoded detached Claims-Sets
- JSON-encoded bundle that carries JSON-encoded CBOR-encoded detached Claims-Sets

In theory we could improve the design of of bundles to allow all of these, but it would add complexity because we’d need to include a type so that JSON-encoded bundles could know the difference between base64’d JSON-encoded Claims-Set and a base64’d CBOR-encoded Claims-Set.

There is a PR here with some clarification: https://github.com/ietf-rats-wg/eat/pull/318



> 
> 6) "Each claim defined in this document is added to the $$Claims-Set-
>   Claims socket group. "
> 
> The term "socket group" is a CDDL-ism.  I know what it means, but it might be
> confusing to some (pointy haired manager) who don't know what CDDL is.
> It might be worth adding to the terminology section.  I'm not sure here.

Forked off a separate discussion for this.


> 
> 7) 4.2.13.  bootseed (Boot Seed) Claim
> 
>   The "bootseed" claim contains a value created at system boot time
>   that allows differentiation of attestation reports from different
>   boot sessions of a particular entity (e.g., a certain UEID).
> 
>   This value is usually public.  It is not a secret and MUST NOT be
>   used for any purpose that a secret seed is needed, such as seeding a
>   random number generator.
> 
> I guess that the second paragraph is needed because the word "seed" might
> confuse people into thinking it has something to do with seeding PRNGs.
> Maybe the problem is the name of the claim.
> Maybe we can come up with a different name for the claim instead?
> Maybe bootnonce, or bootinstance or ??
> 
> If I have bootcount, and I have a per-device identifier (UEID...),
> can I use UEID as a key to CBC encrypt bootcount to make bootseed?

Yes. Or a hash.

The implementation I imagined was calling the RNG once at boot and saving it in the bootseed file. Then read the file when generating the claim. That seemed a bit close to seeding a PRNG, and also the name is similar.

I like bootinstance. Maybe bootoccurance. Not bootnonce because of confusion with other nonces.

For a cleaner claim definition, the second paragraph could move to security considerations. Or be removed.

Pretty open to changes here.


> 
> 8) DLOAS: "This claim is typically issued by a verifier, not an attester."
> would it be worth splitting 4.2 up into two or three sections?
> * Claims from Attesters or Verifiers
> * Claims from Attesters
> * Claims from Verifiers
> ?
> (Also measres claim)

In my view all claims are authored in a way neutral as to whether they occur in results or evidence. Section 1.3.1 explains what needs to be known about this.

Perhaps the text that says this is typically issued by a verifier should be removed. It is an intention that claims be authored neutral this way.


> 
> 9) section 4.2.18.1.2.2.  Six levels of subsection tells me that maybe
> something is wrong.
> 
> Probably Submodules claim can go into claims area, but then forward reference
> an entire Submodules *SECTION*

Yeah. While I think the design for submods is good, the text describing it could be improved a lot. It’s on the list for -16 and some PRs have started in on this.

LL