You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Snapshot.json example is missing hash(es) and size for the root role #31
In section 4.6 of the spec, the description of the snapshot.json file states:
The snapshot.json file is signed by the snapshot role. It lists the version numbers of all metadata on the repository, excluding timestamp.json and mirrors.json. For the root role, the hash(es), size, and version number are listed.
However, the example does not include the hashes or size for the root.json file:
Also, I've seen mentioned in a few places that TAP 5 removes the need to actually include the root in the snapshot file, but I'm not sure if TAP 5 is integrated into the spec, or is just planned to be incorporated in some future version of TUF.
It looks like these values were present way back when, but was removed in theupdateframework/python-tuf#466. Should this line be removed from the spec?
For the root role, the hash(es), size, and version number are listed.
Or Perhaps rephrased to this to be backwards compatible?
For the root role, the hash(es) and size may be listed.
@erickt The complication is that it is actually permissible to list hashes (if not sizes) for all metadata files (other than the timestamp, which is never listed) in the snapshot. See Section 5.6 of the Mercury paper. It's just that the reference implementation hasn't implemented it yet.
@trishankatdatadog Yeah that sounds like a reasonable defense. Would it be reasonable to extend the example for snapshot.json to add a delegation that lists the hash(es) and size in order to encourage clients to consume them if they are available?
I just noticed that docs/METADATA.md also carries misleading (outdated) information in that regard. There is no mention of version numbers, or exclusion of root.json but instead it says:
The snapshot.json metadata file lists hashes and sizes of all metadata files other than timestamp.json
Btw. all sample snapshot.json files in the reference implementation also list root.json.
Activity
erickt commentedon Jan 29, 2019
It looks like these values were present way back when, but was removed in theupdateframework/python-tuf#466. Should this line be removed from the spec?
Or Perhaps rephrased to this to be backwards compatible?
trishankatdatadog commentedon Jan 29, 2019
@erickt The complication is that it is actually permissible to list hashes (if not sizes) for all metadata files (other than the timestamp, which is never listed) in the snapshot. See Section 5.6 of the Mercury paper. It's just that the reference implementation hasn't implemented it yet.
erickt commentedon Mar 24, 2019
@trishankatdatadog Yeah that sounds like a reasonable defense. Would it be reasonable to extend the example for snapshot.json to add a delegation that lists the hash(es) and size in order to encourage clients to consume them if they are available?
trishankatdatadog commentedon Mar 25, 2019
@erickt, yes, please. In fact, we should not even list
root.json(just liketimestamp.json) insnapshot.jsonanymore. Right @JustinCappos ?JustinCappos commentedon Mar 28, 2019
Remove root, add delegation to the snapshot metadata
Remove root, add delegation hashes to the snapshot metadata
lukpueh commentedon Apr 26, 2019
I just noticed that docs/METADATA.md also carries misleading (outdated) information in that regard. There is no mention of version numbers, or exclusion of
root.jsonbut instead it says:Btw. all sample
snapshot.jsonfiles in the reference implementation also listroot.json.Remove root, add delegation hashes to the snapshot metadata
Remove root, add delegation hashes to the snapshot metadata