Closed stmcginnis closed 11 months ago
The diff in the testing seems to be comparing the same file?
Sorry, that was a copy paste error. I've lost the buffer now, but it really was the two different (new targets.json vs old targets.json) files.
Here's a better comparison with more accurate output:
...
Just the expected changes to the version, signature, and expiration.
Issue #, if available:
Closes #478
Description of changes:
This adds a new
transfer-metadata
command to support migrating target and metadata info to a new root. This would previously need to be done by downloading all contents of a previous root and recreating and recalculating SHAs for all targets. With many large targets, this becomes an expensive operation. Since the previous root metadata already contains this information, we can leverage that to just transfer the metadata over to the new root.Testing done:
Created and signed new root. Downloaded several versions of existing root.json files used for Bottlerocket updates. Transferred metadata for all existing Bottlerocket repos:
Got current targets file:
Compared it with the new targets file:
Just the expected changes to the version, signature, and expiration.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.