The post's argument that hash collisions are irrelevant in practice is not convincing at all. Basically they amount to:
Collisions aren't as bad as preimage attacks
Even if you made a file-with-malicious-hash, how would you get people to pull it?
Other attacks are a bigger problem (social engineering)
(2) is laughable in a world with github. It's common for unknown people to submit pull requests to code bases, and for those changes to be reviewed and merged. For example, as part of reviewing pull requests, I have `git fetch`'d proposed changes to my local machine to check behavior on some additional test cases. "If you fetch it you're fucked" is unacceptable as a security boundary.
(1) and (3) are just tu-quoque arguments about other attacks being worse. The relevant question isn't how bad other attacks are, it's how bad this attack is.
The fundamental problem with collisions is that software often assumes they can't happen (or is not tested against them). Thus collisions can trigger bugs, or otherwise cause surprising behavior. For example, webkit figured the colliding PDFs demonstrating a sha1 collision would be excellent for unit tests, so they merged the PDFs into their SVN repo... which completely fucked it [1]. I don't know the exact internals of git so I can't comment on how you would get surprising things to happen, but "oops the file you merged was different than the file you reviewed" and "oops the repository got corrupted" seem entirely plausible.
The post's argument that hash collisions are irrelevant in practice is not convincing at all. Basically they amount to:
(2) is laughable in a world with github. It's common for unknown people to submit pull requests to code bases, and for those changes to be reviewed and merged. For example, as part of reviewing pull requests, I have `git fetch`'d proposed changes to my local machine to check behavior on some additional test cases. "If you fetch it you're fucked" is unacceptable as a security boundary.
(1) and (3) are just tu-quoque arguments about other attacks being worse. The relevant question isn't how bad other attacks are, it's how bad this attack is.
The fundamental problem with collisions is that software often assumes they can't happen (or is not tested against them). Thus collisions can trigger bugs, or otherwise cause surprising behavior. For example, webkit figured the colliding PDFs demonstrating a sha1 collision would be excellent for unit tests, so they merged the PDFs into their SVN repo... which completely fucked it [1]. I don't know the exact internals of git so I can't comment on how you would get surprising things to happen, but "oops the file you merged was different than the file you reviewed" and "oops the repository got corrupted" seem entirely plausible.
[1]: https://www.reddit.com/r/programming/comments/5vyhy2/webkit_...
My prediction: 20 years from now everyone will still use SHA-1 git. That will be simply easier.
Didn't GitHub broke the entire CI system by switching to "main" branch :thinking_face:
Anyway, I think it'll be the same.
Tools will support SHA-256 quickly and we might have a migration program that converts SHA-1 repo to SHA-256 repo.
The only problem is that git (and related tools) will get twice as big...
Regarding the submodule question: I decided to test it and came up with this script:https://gist.github.com/Meneth32/bdb17a8787fc0ab197805d8d0cf...
On debian 13 (trixie) with git version 2.47.3, it runs without error.
You CAN use sha1 submodules in sha256 repos.
Meta: This site breaks the back gesture (2 finger swipe to left). Very annoying
Seems like rage bait, makes a claim of a lot of computation in the era of LLM where computation is already out the window.
So many comments and none yet mentioned Linus Torvalds calling the SHA-1 deprecation a pointless churn: https://www.youtube.com/watch?v=sCr_gb8rdEI?t=11m