GithubHelp home page GithubHelp logo

Comments (4)

hisanak avatar hisanak commented on September 6, 2024

How about this one? Mimicking example 2 in suit-manifest, this example allows the TAM to change the distribution uri freely.
The points are:

  1. severs suit-install containing distribution uri
  2. doesn't set the digest of the severed element (suit-install) to change the distribution uri
  3. clarifys that the firmware author delegates device operator to decide distribution uri by setting uri = Null in suit-common-sequence
SUIT_Envelope = {
  / manifest / 3:bstr .cbor ({
    / common / 3:bstr .cbor ({
      / components / 2:[
        [h'00']
      ],
      / common-sequence / 4:bstr .cbor ([
        / directive-set-parameters / 19,{
          / uri / 21:Null / Points#3. Clarify the uri will be overridden below (in severed suit-install). /,
        },
        / directive-override-parameters / 20,{
          / image-digest / 3:bstr .cbor ([
            / algorithm-id / 2 / "sha256" /,
            / digest-bytes / h'(digest of image)'
          ]),
          / image-size / 14:34768
        }
      ])
    }),
    / install / 9:[] / Points#2. The digest of severed suit-install SHOULD NOT be set in order to change the uri by TAM's will. /
  }),
  / install / 9:bstr .cbor ([ / Points#1. TAM CAN change severed and not digested suit-install. /
    / directive-override-parameters / 20,{
      / uri / 21:'http://set.by.not.author.but.tam/firmware',
    }
  }
}

The 3rd point requires suit-manifest to change the type of suit-parameter-uri.

--- a/draft-ietf-suit-manifest.cddl
+++ b/draft-ietf-suit-manifest.cddl
@@ -215,7 +215,7 @@ SUIT_Parameters //= (suit-parameter-compression-info
 SUIT_Parameters //= (suit-parameter-unpack-info
     => bstr .cbor SUIT_Unpack_Info)
 
-SUIT_Parameters //= (suit-parameter-uri => tstr)
+SUIT_Parameters //= (suit-parameter-uri => (tstr // Null))
 SUIT_Parameters //= (suit-parameter-source-component => uint)
 SUIT_Parameters //= (suit-parameter-run-args => bstr)

from teep-protocol.

dthaler avatar dthaler commented on September 6, 2024

@bremoran this looks like more of a comment/question on the SUIT manifest draft rather than the TEEP protocol spec

from teep-protocol.

mcd500 avatar mcd500 commented on September 6, 2024

@bremoran @dthaler let's discuss this at IETF 110 TEEP session, since this is use-cases of SUIT manifest in TEEP

from teep-protocol.

mcd500 avatar mcd500 commented on September 6, 2024

Fixed in #161

from teep-protocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.