Skip to content

Commit

Permalink
Recommend signatures only contain one sig per keyid
Browse files Browse the repository at this point in the history
In an attempt to help implementers protect against incorrect threshold
computation, update "File formats" to suggest that the signatures list
contain only a single signature per keyid at metadata creation time.

Suggested-by: Jussi Kukkonen <[email protected]>
Signed-off-by: Joshua Lock <[email protected]>
  • Loading branch information
joshuagl committed Jun 2, 2023
1 parent 19174f4 commit 2ec6edd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tuf-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ All signed metadata objects have the format:
::
A hex-encoded signature of the canonical form of the metadata for <a for="role">ROLE</a>.

Note: The "signatures" list SHOULD only contain one <a>SIGNATURE</a> per
<a for="role">KEYID</a>. This helps prevent multiple signatures by the same key
being counted erroneously towards the minimum <a>THRESHOLD</a> indicating valid
metadata.

### Key objects ### {#file-formats-keys}

All <dfn>KEY</dfn> objects have the format:
Expand Down

0 comments on commit 2ec6edd

Please sign in to comment.