This commit is contained in:
Joey Hess 2023-11-30 16:49:48 -04:00
parent 093110d997
commit 3e8618fed3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,19 @@
[[!comment format=mdwn
username="joey"
subject="""comment 8"""
date="2023-11-30T20:43:53Z"
content="""
I think Ilya Shlyakhter gets to a fundamental problem in his comment above.
Any way that git-annex stores data about an alternate key that is recorded
in git, allows anyone to spoof bad data.
For example, if I have a SHA256 key stored in git-annex, it would be a bad
security hole if I fetched from Ilya's repository and suddenly git-annex
was willing to accept some MD5 key as being the same content as my SHA256
key. Even if the two keys had the same content currently, that MD5 key can
be collision attacked later.
So there would need to be a direction in which key upgrades were allowed.
Which is fine for `WORM -> SHA256`, but less clear for `SHA1 -> SHA256`
and much less clear for other pairs of modern hashes.
"""]]