Re: [Rats] EAT Profiles

Michael Richardson <mcr+ietf@sandelman.ca> Sat, 17 September 2022 18:25 UTC

Return-Path: <mcr@sandelman.ca>
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 73BE1C14CE43 for <rats@ietfa.amsl.com>; Sat, 17 Sep 2022 11:25:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=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 idSaIYa-eFaJ for <rats@ietfa.amsl.com>; Sat, 17 Sep 2022 11:25:54 -0700 (PDT)
Received: from relay.sandelman.ca (relay.cooperix.net [IPv6:2a01:7e00:e000:2bb::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99098C14F722 for <rats@ietf.org>; Sat, 17 Sep 2022 11:25:54 -0700 (PDT)
Received: from dooku.sandelman.ca (dynamic-077-011-033-222.77.11.pool.telefonica.de [77.11.33.222]) by relay.sandelman.ca (Postfix) with ESMTPS id C80421F480; Sat, 17 Sep 2022 18:25:51 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 007D41A0FCB; Sat, 17 Sep 2022 20:25:50 +0200 (CEST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "Smith, Ned" <ned.smith@intel.com>, "rats@ietf.org" <rats@ietf.org>
In-reply-to: <9584F991-42AC-47BC-9170-D52E49917D0D@intel.com>
References: <71934.1663019954@dooku> <6D74BAE0-3B37-4A1F-9966-96EB60B9D675@island-resort.com> <240776.1663329145@dooku> <DBBPR08MB5915D186BBDF010933513701FA489@DBBPR08MB5915.eurprd08.prod.outlook.com> <F985109D-BAB7-4313-986A-DB9B92893BD9@island-resort.com> <9584F991-42AC-47BC-9170-D52E49917D0D@intel.com>
Comments: In-reply-to "Smith, Ned" <ned.smith@intel.com> message dated "Sat, 17 Sep 2022 00:49:44 -0000."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Date: Sat, 17 Sep 2022 20:25:50 +0200
Message-ID: <442054.1663439150@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/RDRRMrQSeRAe-YNR1t_XbCwot0I>
Subject: Re: [Rats] EAT Profiles
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: Sat, 17 Sep 2022 18:25:58 -0000

Smith, Ned <ned.smith@intel.com> wrote:
    > There are two other "EAT" profiles published besides the TEEP profile
    > (https://datatracker.ietf.org/doc/draft-tschofenig-rats-aiss-token/ and
    > https://datatracker.ietf.org/doc/draft-tschofenig-rats-psa-token/
    > ). The AISS profile lists the subset of EAT that it uses (see
    > [1]). They are described as "EAT Profiles". The AISS profile uses a few
    > EAT code points but seems to redefine structures such as nonce-label as
    > an aiss-hash-type. Unless I'm not reading it right this is different
    > from the EAT definition [2]. The AISS profile is within the EAT
    > definition for nonce, namely .size 32, .size 48 and .size 64 are a
    > subset of .size (8..64). I'd have to see the CBOR encodings for each to
    > be certain, but it seems they would have the same encoding and would
    > satisfy an EAT schema check. But a AISS schema check would likely
    > reject some other nonce statements that pass a schema check written to
    > the EAT draft.

I didn't look at the document yet, but it seems that getting the claims right
is probably an important and reasonable thing that users should be doing.
It seems odd to redefine things.

    > Is this a good example of what the WG intends in terms of how profiles
    > should work?

    > To Michael's earlier point, the aiss seems to do a lot of work to
    > arrive at a profile (given it appears to use just 3 EAT claims and each
    > is redefined as a more constrained interpretation of the EAT type
    > definition at the leaf.

I think that it should be simpler... even just your paragraph above is making
me wince.

    > developer must implement the profile schema also. This implies schema
    > compliant profiles incur development cost to be vetted as subsets of
    > the EAT schema. The EAT draft doesn't seem to expect automated schema
    > acceptance (by the EAT schema) as profiles can be human readable
    > text.

I would expect that one could write an EAT checker (or verify evidence in a
Verifier) without knowing which EAT user was in use.  That's why I'd like to
see EAT define a small number (<10) "profiles".
I don't think that such tools need to know the details of all the claims to be
able to produce a result.  Obviously some claims may need to be in particular
formats to be acceptable, but that should be a semantic layer constraint,
rather than a syntactic layer constraint.

    > In short, should a profile of EAT could pass an automated schema check
    > based on independent implementation of an EAT schema checker without
    > foreknowledge of the profile's schema? The intention seems to be that
    > (at least a subset of) the profile schema is subset of the EAT
    > schema. Should that subset be checkable by automated means?

I'd like to answer yes.
That's how we arrive at re-useable code libraries, which is a major argument
for doing this work.


--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-