Skip to content

Clarify the type of the target "custom" field #50

Closed

Description

@erickt

In 4.5 of the spec, the TARGETPATH is defined as:

 { TARGETPATH : {
       "length" : LENGTH,
       "hashes" : HASHES,
       ("custom" : { ... }) }
   , ...
 }

with custom being defined as:

If defined, the elements and values of "custom" will be made available to the client application. The information in "custom" is opaque to the framework and can include version numbers, dependencies, requirements, and any other data that the application wants to include to describe the file at TARGETPATH. The application may use this information to guide download decisions.

Just to be safe, is custom a json object (as the snippet suggests), or is it allowed to be any json value? As best as I can tell, python-tuf asserts it's an object. If this the case, I'll submit a patch to make the spec more explicit.

Activity

  1. trishankatdatadog commented on Aug 15, 2019

    @trishankatdatadog
    Contributor

    I think we should clarify that it's an object, so that different applications can safely consume different parts of it w/o overlapping with each other. Thanks for raising this!

  2. added 3 commits that reference this issue on Oct 6, 2020
    e2bfb91
    46fb9d2
    b9a066e
  3. added a commit that references this issue on Oct 15, 2020
    821942b
  4. added a commit that references this issue on Oct 30, 2020
    f7ec856
  5. added a commit that references this issue on Nov 25, 2020
    48df293
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions