Re: [Suit] [suit]: draft-moran-suit-manifest-02

David Brown <david.brown@linaro.org> Wed, 11 July 2018 17:44 UTC

Return-Path: <david.brown@linaro.org>
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 67223130E40 for <suit@ietfa.amsl.com>; Wed, 11 Jul 2018 10:44:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=linaro.org
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 0XFuETGo1pyM for <suit@ietfa.amsl.com>; Wed, 11 Jul 2018 10:44:26 -0700 (PDT)
Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7F9BA130E31 for <suit@ietf.org>; Wed, 11 Jul 2018 10:44:26 -0700 (PDT)
Received: by mail-io0-x229.google.com with SMTP id z20-v6so24769302iol.0 for <suit@ietf.org>; Wed, 11 Jul 2018 10:44:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MUJobptmD3q9x66iS9BbKyH4x/FTdeqDs2FX03EpfNk=; b=L2zUti6JxEhP8F4qNxBQLpvC5V7mNLLfCnOQoegWW7Ncg76e3sB4VpolxNb63BIIGL j2ZVJ6VvZ6AcyNBAPD+fgDY4Dl1oxFd8CuxbXGqRLk6/2Qj+mHrOK9q3qOaLrxwgbEXQ QQChUxdkHqI5Tt+7eNnOQB+o1Iq2F93YLlERo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=MUJobptmD3q9x66iS9BbKyH4x/FTdeqDs2FX03EpfNk=; b=QUqH+NJCnK+R5pYF7uh1k9V2DTxz/LAsWWoke7oPj1IRS6KOMCEEbdLeECSJcFKujR DvURzhn8ygAH1y1s0TKL0q0gjqubIlSnwX8HCyCGotN0lGgbFEo2uicBepNeycXTyETa BuY1kGeIHgewZQIdXpZmlwdNT0LzG9nQRLr5C5ZfqdPQe5nh4+FP/ICP5KCa3k2bVkZe zFPagKiIpklM3oW+OPe8gFOnkscvVeHSnbws8rBF80mYu8gD8c/5W/9xEUPPKusH287K zBbEFG/1LOFm3uem2hFNbBdep7ryd5W5K0f4R9J8WVwYA0oBYSCwlYJrQnxPdP/MaknP 3T8A==
X-Gm-Message-State: AOUpUlEVjeykzBNvqqKcGRwaj9j1kCUJ108lZai0ygnwyCt2Cj9Fl0AK y56hNi2/ndWx4LjkNYdTm+970g==
X-Google-Smtp-Source: AAOMgpff+tyajdj2CMmvq+GAfpAusHEJUWM+0sqLuXziWrhfjCziSXJoSxKkMoWoAYw/Ij32oqs3Mg==
X-Received: by 2002:a6b:90d4:: with SMTP id s203-v6mr23747337iod.249.1531331065716; Wed, 11 Jul 2018 10:44:25 -0700 (PDT)
Received: from davidb.org ([2601:283:4300:987c:6245:cbff:fe6d:5400]) by smtp.gmail.com with ESMTPSA id h14-v6sm8440607ioj.21.2018.07.11.10.44.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 10:44:25 -0700 (PDT)
Date: Wed, 11 Jul 2018 11:44:23 -0600
From: David Brown <david.brown@linaro.org>
To: "Rønningstad, Øyvind" <Oyvind.Ronningstad@nordicsemi.no>
Cc: Brendan Moran <Brendan.Moran@arm.com>, suit <suit@ietf.org>, Hannes Tschofenig <Hannes.Tschofenig@arm.com>
Message-ID: <20180711174423.GA8918@davidb.org>
References: <FDAB87B5-A7CB-4BBC-B7CF-763355B099D8@arm.com> <790d40b227034bd784185bd9bdd52f4f@nordicsemi.no>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <790d40b227034bd784185bd9bdd52f4f@nordicsemi.no>
User-Agent: Mutt/1.9.4 (2018-02-28)
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/PoU_UyGju9kU92vOvpob0_yGubY>
Subject: Re: [Suit] [suit]: draft-moran-suit-manifest-02
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.27
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: Wed, 11 Jul 2018 17:44:29 -0000

On Fri, Jul 06, 2018 at 01:50:38PM +0000, Rønningstad, Øyvind wrote:

>How about making more information severable (like with text)? Some information
>is short-lived, like the processing steps, while other information could be of
>interest after the update is complete, like the postConditions and sequence
>number. I'm wondering if we can make a split, so the relevant parts of the
>manifest can be stored for later reference. Something like the following:

I have another proposal for this.

Motivation: The manifest will be processed by different entities that
will differ in processing capability.  We want to make it easy to
include potentially complex information in the manifest, without
having to burden lower-resource entities that don't need to process
this information.  The goal is to make the manifest format more
generally processable.

Proposal: Assocate with each entity in the manifest additional
information describing the audience for that information.  

One way to do this would be to change the top-level of the manifest to
something like:

Manifest = [
  manifestVersion: 1,
  digestInfo:      DigestInfo,
  sequence:        SequenceNumber,
  info:            { * int => bstr }
]

This would be similar to how extensions are handled, except that all
of the existing instructions would be formatted in the same way.  A
given entity would know the fields that it is able to process, and any
other fields it can simply skip (as it is just a bstr).

This adds some complexity to the normal processing, and it would be
important to require, for example that the entries in 'info' are in
order by key in order to have a canonical representation.

David