Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clarify that delegations are optional Nowhere in the spec, we clarify that "delegations" is an optional field in the targets metadata file. This is a possible reason why (at the time of writing this commit) in the TUF python reference implementation "delegations" is still a required field. Signed-off-by: Martin Vrachev <[email protected]> * Make CONSISTENT_SNAPSHOT optional From chapter 6.2.1 in the tuf specification (version 1.019) "Finally, the root metadata should write the Boolean "consistent_snapshot" attribute at the root level of its keys of attributes. If consistent snapshots are not written by the repository, then the attribute may either be left unspecified or be set to the False value. Otherwise, it must be set to the True value." The above implies that there could be repositories with root metadata without CONSISTENT_SNAPSHOT. Clarify that, but phrase it so it's clear this should be included in new implementations. For context: https://theupdateframework.github.io/specification/latest/index.html#writing-consistent-snapshots Signed-off-by: Martin Vrachev <[email protected]> * Clarify "paths" and "path_hash_prefixes" Clarify "paths" and "path_hash_prefixes" in delegations, because currently, it's not properly defined which of these options can be used to create a valid target file: - BOTH paths and path_hash_prefixes - ONLY ONE of paths and path_hash_prefixes - NONE of paths and path_hash_prefixes With this change, I aim to define clearly that a valid target file will contain ONLY ONE of them or NONE of them. Signed-off-by: Martin Vrachev <[email protected]> * Update tuf-spec.md Co-authored-by: Trishank Karthik Kuppusamy <[email protected]> Co-authored-by: Joshua Lock <[email protected]> Co-authored-by: Trishank Karthik Kuppusamy <[email protected]> Co-authored-by: Marina Moore <[email protected]>
- Loading branch information