Skip to content

Commit f23b4e5

Browse files
Define DELEGATOR in targets workflow before the DFS loop
Use DELEGATOR instead of TARGETS during the DFS for clarity Signed-off-by: Marina Moore <mnm678@gmail.com> Co-authored-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
1 parent 21731f4 commit f23b4e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tuf-spec.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ it in the next step.
14721472
non-volatile storage as FILENAME.EXT (e.g. targets.json).
14731473

14741474
7. **Perform a preorder depth-first search for metadata about the
1475-
desired target.** Let TARGETS be the current metadata, beginning with the
1475+
desired target.** Let DELEGATOR refer to the current
14761476
top-level targets metadata role.
14771477

14781478
1. If this role has been visited before, then skip this role
@@ -1485,8 +1485,8 @@ it in the next step.
14851485
2. Otherwise, recursively search the list of delegations in
14861486
order of appearance.
14871487

1488-
1. Let DELEGATEE denote the current target role TARGETS is
1489-
delegating to.
1488+
1. Let DELEGATEE denote
1489+
the current target role DELEGATOR is delegating to.
14901490

14911491
2. **Download the DELEGATEE targets metadata file**, up to either
14921492
the number of bytes specified in the snapshot metadata file, or some Z
@@ -1509,7 +1509,7 @@ it in the next step.
15091509

15101510
4. **Check for an arbitrary software attack.** The new DELEGATEE
15111511
metadata file MUST have been signed by a threshold of keys specified in the
1512-
TARGETS metadata file. If the new DELEGATEE metadata file is not signed
1512+
DELEGATOR metadata file. If the new DELEGATEE metadata file is not signed
15131513
as required, abort the update cycle, and report the failure.
15141514

15151515
5. **Check for a freeze attack.** The latest known time
@@ -1529,7 +1529,7 @@ it in the next step.
15291529

15301530
8. Otherwise, if the current delegation is a non-terminating
15311531
delegation, continue processing the next delegation, if any, by repeating
1532-
the preorder depth-first search with DELEGATEE as the current TARGET role.
1532+
the preorder depth-first search with the DELEGATEE as the DELEGATOR.
15331533
Stop the search, and jump to step [[#fetch-target]]. as soon as a
15341534
delegation returns a result.
15351535

0 commit comments

Comments
 (0)