[Suit] manifest18 review

"Rønningstad, Øyvind" <Oyvind.Ronningstad@nordicsemi.no> Mon, 08 August 2022 12:23 UTC

Return-Path: <Oyvind.Ronningstad@nordicsemi.no>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 33BAEC14CF10 for <suit@ietfa.amsl.com>; Mon, 8 Aug 2022 05:23:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nordicsemi.onmicrosoft.com
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 B5Tx7wpLpEEm for <suit@ietfa.amsl.com>; Mon, 8 Aug 2022 05:23:49 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60072.outbound.protection.outlook.com [40.107.6.72]) (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 2FCF8C13CCDA for <suit@ietf.org>; Mon, 8 Aug 2022 05:23:48 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CUQbAWcF0xf4bXG26ahcKuZ92PWJFbzkDLVwC/urL31fzkxtkvxyf3LDKz8l7bLd9spmCwt4RwQDs0kbYYIH7u6cxnESRP+Id+GLQaBXP1H2qf8Om51l8ig/QXOPOt9Q2ZF5KDHWdsDEwEYwOvGiuNewFsV3IevoZKpwLIh4P4UbCMVfSmFSIT8DAAYxT9o/TAOa1tsPGK4BaBou8ppRWe5Aqy4taQHOcYVaslV2pKcQX8t07dlog5RnLru8M9/XbnNMQGL7AM2r69MLQ2coSJvcIs5oBiHKFZeztvPIVhvuLkJzHd60jcsbztHZqEHfzNEiRnIlW8c5tJJgGFNbbw==
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=x7R85hZJis4riUwrUlTBlv1iOJ4s9a9eAbUGjXo8UMg=; b=BsARW5sxTSskDlV4ULPtUyCi08YKmaO9hu+f+AwOHBrsWSV09B1EtgU/JLz5WcsIyiOkOrq9cFMIHTER7xSDjoGpjakncKpCySkTsltNiXJ67xMkZWpSapNNWGgtyHf4Cj5jL7iENV5vRk4f7hjqKn9Vq1yoQHYmH+3VaYLszAjbwBmY+83WALkzFYJsB9PJWpYmfaZn65WS6tm0l5qlSQ/n2PRHLsKSb3v5vfT+GU2150E53R+SRHTrCJ3iWW3t22ZVspPacxRu9Viz3coaCEXkrvzdZeI51oLPFU77S8OXYoL9++3LtZE4QaoV4v1ekf8td2CIirUVXENzIFxjEQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nordicsemi.no; dmarc=pass action=none header.from=nordicsemi.no; dkim=pass header.d=nordicsemi.no; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nordicsemi.onmicrosoft.com; s=selector2-nordicsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x7R85hZJis4riUwrUlTBlv1iOJ4s9a9eAbUGjXo8UMg=; b=lWq7TRLhew7T7/ODCsQSS6Iehnqfg1rX5Xev6by5IiAl5ImHGfA7VVmgkXXnH0Xybixi24V/fLWHuPVwwII6TZC2lj5DSxkYjOzcX+ZRgE6x2/dD5GhHrbHbWAtcfOpjCIjI4eX3JwA6E8VDVfSP4KHstPf/rp4tD55YIDljLNU=
Received: from AM9PR05MB7668.eurprd05.prod.outlook.com (2603:10a6:20b:2cc::13) by AM7PR05MB6883.eurprd05.prod.outlook.com (2603:10a6:20b:1a8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.20; Mon, 8 Aug 2022 12:23:45 +0000
Received: from AM9PR05MB7668.eurprd05.prod.outlook.com ([fe80::ad35:9ba8:f778:2377]) by AM9PR05MB7668.eurprd05.prod.outlook.com ([fe80::ad35:9ba8:f778:2377%9]) with mapi id 15.20.5504.018; Mon, 8 Aug 2022 12:23:45 +0000
From: "Rønningstad, Øyvind" <Oyvind.Ronningstad@nordicsemi.no>
To: "suit@ietf.org" <suit@ietf.org>
Thread-Topic: manifest18 review
Thread-Index: AdirHj1LlEQLPtoFTnSBRxEXcwCh+w==
Date: Mon, 08 Aug 2022 12:23:45 +0000
Message-ID: <AM9PR05MB7668A62C66CC7A2F2F86125E88639@AM9PR05MB7668.eurprd05.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nordicsemi.no;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 39af6788-4205-4ed8-0139-08da7938d6ba
x-ms-traffictypediagnostic: AM7PR05MB6883:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 6XADCBMbt/Dw+X2QpYmKQUFlpDPjaDwDJsoJlFp4SQ19kQstEscMnwbLgtTGLCDa8A/og6Si3+0+8qWcSn1zylVsfoX56yutK/nb8QY0IciI74xfSSjKfFDWF/o905ST8PhoGuYOHij6GfAqf7GaEbEUNpAaZ1v/vtkEZa/0sga4FA1EhQBlixIBFBTYwyKST6dCvVZER9tVdkI8EdcSjchVYjHkHFwA6wDPk0MHo9NlKdxA+Q6hpYan0Nh/7JQXnJm9EAUSKa0iO63d+YG1XEN5/BSeJ6pARQJC/6ZhoVVbuJHTFPUa4e4Yy5UwLkXgsfx4qpQ4mlpmP565YoZHSt5VIFbF5OlDG+fFxcqdpSwtMaRnR8HheuTFRFBKcs0Mi1HPc90g3Ja48psJUYbxC+T4qxde3oNmuFmU567k/YnjJ1RpKpIebMHNseSDDNbAJE47Ou+IBuoK6JzE3V3+5Mij20Wfb+5RiiHkYZfFpV1OqKRUVomZorvknJFp70wOH8tghreQZoO6qEAvQ0xxkRNyEcaMq2jF49dy6/yxUPBTlhHBIvyBI5fPjZebQY3akg8XRpuR/6xJKbBT2gouUy13D5DhlCyfIYIskpCaC4HRjmNZPorQTB8s7oeoRPqbrWyS2QjqsSA0qEKFVe3hRMKObSvTAisx+yk4nLYDBki5Td3Q7KH+oR7uo0VNwc85exvkxgTPcE0kljXGJ4ZnnmA0lIwwdMThAkyH9NHk2aqaXk38zs3x9HdNmSv6u8Ogj/hFv7+T3PWflPepeoqmGBOqlKa9fsG1yZoAUypmWPCC9hbNEanG5+5NGNcbSetm
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR05MB7668.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(39850400004)(136003)(366004)(376002)(396003)(7696005)(6506007)(38100700002)(41300700001)(38070700005)(2906002)(33656002)(9686003)(55016003)(186003)(122000001)(316002)(6916009)(8676002)(64756008)(66946007)(66446008)(66476007)(66556008)(76116006)(71200400001)(83380400001)(52536014)(86362001)(7116003)(5660300002)(478600001)(8936002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: R7k+nDwHj4Rc+6nJhWuv8BdiZ/N99wWWxAcN4WPil3l8yYSWcTYA/8enMQv3RRltT5Ky+DTa9x+FBvvCsqWBiwI2bHNcBWc+ZcwgjVVcgmUmqRM+MN6Vp7jJcby+PPaMu0mN5cJm424jNGC4BD2zzM4uSjurkJOEowioteI6Y91iW54yQtx3sVouSOC6oVPIUrGjbZPZ1nRN74qVUSWNJNmGASO/e1R5Zwq49Guwp4zvSHuDOd49uj27JhgC58QwD40yssrSeRRszJC3ODdUG+++s67JCuNhJX7QUwfrqtRazvS1up2P+Yceali9sAmM2vB3bkDuQEgvgZC3n4lPJgbg8jDQ/MeBhA1rolUaRKOCU0AK48Vas2SkDwTypXwcCXCrZVs2oYVoxfuxmtR0nq/7cKZzaK9gu2R+Rjdnmzbx1oX0ICSsSht0Q3BsM2zQz39GagvyDCrXjRBkcqnWKf5gtDj0RCAzA2BwPmQglnLLbyBYkkztZnkIRhAkqgVPTweh4tzpkY2qmeOr3zRm/pOtonxlq1AyM6SekrlLQozRvoQrA/Hqwe/PL9AezAMYZmHONnexUJY+Ur3HMm2vlDYlEr7jAvD1L3PpBr1SuKtxjt8xNdS1Z2TBWlAe3K14Y7x/Ry7rcXI1x0pwOcs+sif/Rp91xX+uYf67vBgfuHZQN7SjJeyFBZ/Ulif3nOhF3bxvMF6CxY3Fk/Jn/CDPssp910xPZt7m7BMd/uFeEENMYDrrxxkKLJg9RIJe7hdKOyZPQfHL3ZIvklZKiQj8u86ecydzBpgOXCdtfpSWahFJ5Gw0BdNbq41EbT90vmBzIm57zswfISDLbf0UAA504OprtXjWDelbniq+fFklttV68Al+6fFN2ezus0wtIOP7kn1Q7Qt8cyt60jnZ9r/r9+dZDTPyqzIDzM82T8vSwWuHweytN8opVcVGRKx3+ewR2IuOLOnM7Ry0VjmDbSO+dyY4onrqJjv20yIX4iD2mpcDvaolZJFN3Uxa8+JfKJBbJNHkvInhCgUk6RSps1fIGkX9J9F8HreX9Pe4QUpv69nZl/0pkI6aM/sc48HhbnCeWDlT+Sc7GL9/meo5mBWPlEPzveg47EXLBUwyCP61RyOE0Kr/o5Ikjx4a0T3UTw7lXmmz4RiXtfrdWhe+TDh+uipVNL5UthAAjdYGgWv1cXE/WMnZtyxf52wjacXuRXE3ZHspV3hmybNSDFnbUWyPsdBtKdcVmCVMLxh38i/FguWvTYeOzT61gFKha7sYnghU4XUJ2DfEWO0els1pGLcleU7BVDU63l0Vu182QLYNVYahMCcoWWOsU83pk0QF8NoGBJAKDEQ2jo4JwC+u1eH4t75im3Dw1cNyVV8+5S4LtQcSa2UBMVmEGmEG2ikuKC13Iptewdi88nf/oqyuxdpgzAVrGvm23THQuDprMKZGgNrWDcS6RElReh+qjeiAm0EMwHQaMiJNu+Db8lVUMioOsVAEGgRvT1ZxhRgghA+4RxzPlm/VQ0RX1tYicFyDSB3lPfGjvZSx0xVVGEd+3Lob0gvoMWlJGBwIUTaZohdQUpUxwCjjxqLHi/jAbswFnkrP+0WEz18C1Hb18oKHoZHyzq6gagQtEfaCgFloP1z6i0VI59TXaMVcJZPCF+gTt8skX8Oe1+y9rN+ASTboLCqq2g==
Content-Type: multipart/alternative; boundary="_000_AM9PR05MB7668A62C66CC7A2F2F86125E88639AM9PR05MB7668eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nordicsemi.no
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM9PR05MB7668.eurprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 39af6788-4205-4ed8-0139-08da7938d6ba
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Aug 2022 12:23:45.3515 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 28e5afa2-bf6f-419a-8cf6-b31c6e9e5e8d
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Rh9M3OYj9LailapR41XF9yiopIAUq+UR1AAyi+3Ijkewwi3Vo7Od+EFkcDMPES2k6jo1sriWVGxtAEbphe7u23M6NShtrZGmc1UWe5BFrLkq4eldoOG+7OvALXBSbZsV
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR05MB6883
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/Blx1QG94VC73ohYImkH14S4IFtI>
Subject: [Suit] manifest18 review
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2022 12:23:51 -0000

Hi everyone, here is another list of questions, suggestions, and clarifications for the manifest.


  *   (I've mentioned this before, but can't recall that we have properly discussed it) I feel the spec is missing a "write" directive for writing very small values (e.g. 32-bit configuration values). The only way to do this now would be to add the 4 bytes as a payload (possibly integrated), and have a digest check in the manifest followed by a copy. This is obviously a lot of wasted bytes and cycles. Can we add a suit-directive-write directive with a bstr argument that will be written directly to the current component?
  *   I think the envelope should have a suit-envelope-version analogous to suit-manifest-version, since it is the top-level type, and therefore needs to be correctly decoded before the suit-manifest-version can be checked.
  *   In Table 1 "run" is described as "run(current)" and "run sequence" is described as "exec(arg)". I suggest renaming "run sequence" to "execute sequence" in the whole document to avoid confusing the two concepts (which are quite different). Another source of confusion is that "the run sequence" can apply to the "run" command sequence in the manifest.
  *   I suggest renaming "common sequence" to "shared sequence" since it is less similar-sounding to "command sequence", and arguably slightly more descriptive.
  *   Is "false" a valid value for IndexArg (6.5 seems to imply no)? If not, the CDDL should be changed from "IndexArg /= bool" to "IndexArg /= true".
  *   6.7 (The section on parallell processing) states "To isolate each sequence from each other sequence, each sequence MUST begin with a Set Component Index directive with the following exception: when the index is either True or an array of indices, the Set Component Index is implied. Any further Set Component Index directives MUST cause an Abort". Does this restriction on Set Component Index inside Run Sequence always apply, or only when Strict Order is False in the surrounding context?
  *   In directive-try-each, if one sequence succeeds, should the try-each end, or should all sequences in the try-each be executed regardless?

BR, Øyvind