Skip to content

Commit

Permalink
Ticketize doc header todo items
Browse files Browse the repository at this point in the history
See:
Add root metadata class to new TUF metadata model theupdateframework#1137
Add classes for complex metadata fields theupdateframework#1139
Add input validation to simple metadata api theupdateframework#1140

Signed-off-by: Lukas Puehringer <[email protected]>
  • Loading branch information
lukpueh committed Sep 10, 2020
1 parent 73dd72d commit 228a4c7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,6 @@
to read/serialize/write from and to JSON, perform TUF-compliant metadata
updates, and create and verify signatures.
TODO:
* Validation (some thoughts ...)
- Avoid schema, see secure-systems-lab/securesystemslib#183
- Provide methods to validate JSON representation (at user boundary)
- Fail on bad json metadata in read_from_json method
- Be lenient on bad/invalid metadata objects in memory, they might be
work in progress. E.g. it might be convenient to create empty metadata
and assign attributes later on.
- Fail on bad json metadata in write_to_json method, but with option to
disable check as there might be a justified reason to write WIP
metadata to json.
* Add Root metadata class
* Add classes for other complex metadata attributes, see 'signatures' (in
Metadata) 'meta'/'targets' (in Timestamp, Snapshot, Targets), 'delegations'
(in Targets), 'keys'/'roles' (in not yet existent 'Delegation'), ...
"""
# Imports
from datetime import datetime, timedelta
Expand Down

0 comments on commit 228a4c7

Please sign in to comment.