mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
do not immediately verify latest root when rotating
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
This commit is contained in:
parent
65e5ee118b
commit
92ae4eb8a6
1 changed files with 5 additions and 3 deletions
|
|
@ -1125,9 +1125,11 @@ def _update_root_metadata(self, current_root_metadata):
|
|||
None.
|
||||
"""
|
||||
|
||||
# Retrieve the latest, remote root.json.
|
||||
latest_root_metadata_file = self._get_metadata_file(
|
||||
'root', 'root.json', DEFAULT_ROOT_UPPERLENGTH, None)
|
||||
# Retrieve the latest, remote root.json *WITHOUT* verifying it just yet.
|
||||
# We will verify it soon if all goes well.
|
||||
latest_root_metadata_file = self._get_file(
|
||||
'root.json', lambda f: f, 'meta', DEFAULT_ROOT_UPPERLENGTH,
|
||||
download_safely=False)
|
||||
|
||||
latest_root_metadata = securesystemslib.util.load_json_string(
|
||||
latest_root_metadata_file.read().decode('utf-8'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue