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

Hash is appended to file name. #104

Closed
alee122 opened this issue Feb 8, 2018 · 7 comments
Closed

Hash is appended to file name. #104

alee122 opened this issue Feb 8, 2018 · 7 comments

Comments

@alee122
Copy link

alee122 commented Feb 8, 2018

I was running through the setup tutorial and after running "tuf commit" each file's hash was appended to the beginning of the file name, which doesn't match the tutorial. If that is the correct behavior it would be helpful to update the tutorial so that people don't dive into the code thinking there might be a bug to fix.

@lmars
Copy link
Contributor

lmars commented Feb 8, 2018

@alee122 you are correct, would you be willing to fix the tutorial and prefix the filenames with hashes?

@alee122
Copy link
Author

alee122 commented Feb 8, 2018

Sure! Glad I asked because I reinstalled it a bunch of times thinking I was going crazy. What was the thought process behind your decision to deviate from the original TUF paper?

@titanous
Copy link
Contributor

titanous commented Feb 8, 2018

It's not a deviation, this is consistent snapshots: https://github.com/theupdateframework/specification/blob/master/tuf-spec.md#7-consistent-snapshots

@alee122
Copy link
Author

alee122 commented Feb 8, 2018

Oh I see, I was going off the 2010 paper (didn't realize it was that old until I checked just now).

@alee122
Copy link
Author

alee122 commented Feb 14, 2018

Would you rather I wrote <file_hash>.baz.txt or write out an actual hash? If I were to use an actual hash I would also show the creation of baz.txt so the hash would match a user set up if they followed the directions exactly.

@alee122 alee122 closed this as completed Feb 14, 2018
@alee122 alee122 reopened this Feb 14, 2018
@alee122
Copy link
Author

alee122 commented Feb 14, 2018

Oops.

@lmars
Copy link
Contributor

lmars commented Feb 15, 2018

The docs use example shortened hashes for keys so perhaps just make up some similar shortened hashes for the files.

@mnm678 mnm678 closed this as completed Sep 10, 2021
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

No branches or pull requests

4 participants