Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot is only required to contain Targets versions. #92

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

pattivacek
Copy link
Collaborator

Also add a note about malicious mirrors being out of scope but discussed in the Mercury paper.

Closes #90.

However, section 5.4.4.6 (How to check Targets metadata) still mentions that we should "[d]ownload the number of bytes either specified in the Snapshot metadata file, or some Z number of bytes [...]" despite that the Snapshot metadata does not mention anything about length. Should we say length is optional in snapshots, or remove that bit and only mention the "Z number of bytes"?

Also add a note about malicious mirrors being out of scope but discussed
in the Mercury paper.

Signed-off-by: Patrick Vacek <[email protected]>
Copy link
Member

@trishankatdatadog trishankatdatadog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @patrickvacek, LGTM

I recommend removing that bit and only mention the "Z number of bytes" 👍

The snapshot metadata is not required or recommended to contain the
lengths of targets metadata. It just has versions.

Signed-off-by: Patrick Vacek <[email protected]>
@pattivacek
Copy link
Collaborator Author

@trishankatdatadog Thanks for the suggestion. I've pushed a second commit that addresses the length issue.

Copy link
Member

@trishankatdatadog trishankatdatadog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@trishankatdatadog trishankatdatadog merged commit 762a928 into master Mar 27, 2019
@trishankatdatadog trishankatdatadog deleted the fix/snapshot-version-only branch March 27, 2019 14:50
pattivacek added a commit to advancedtelematic/tuf-test-vectors that referenced this pull request Mar 29, 2019
pattivacek added a commit to advancedtelematic/aktualizr that referenced this pull request Mar 29, 2019
Uptane (and TUF) no longer require them. If they are there, we will use
them, and if not, we skip them. This provides no real security benefit,
but may help detect implementation faults.

For more information, see:
uptane/uptane-standard#90
uptane/uptane-standard#92

Signed-off-by: Patrick Vacek <[email protected]>
pattivacek added a commit to advancedtelematic/aktualizr that referenced this pull request Apr 15, 2019
Uptane (and TUF) no longer require them. If they are there, we will use
them, and if not, we skip them. This provides no real security benefit,
but may help detect implementation faults.

For more information, see:
uptane/uptane-standard#90
uptane/uptane-standard#92

Signed-off-by: Patrick Vacek <[email protected]>
pattivacek added a commit to advancedtelematic/aktualizr that referenced this pull request Apr 15, 2019
Uptane (and TUF) no longer require them. If they are there, we will use
them, and if not, we skip them. This provides no real security benefit,
but may help detect implementation faults.

For more information, see:
uptane/uptane-standard#90
uptane/uptane-standard#92

Signed-off-by: Patrick Vacek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants