A Git Horror Story: Repository Integrity with Signed Commits (2012)
mikegerwitz.com
mikegerwitz.com
Also I'd trust anyone who denies adding a backdoor like this. Why would anyone do this with their name attached to the change?
What you'd actually do is change the author to "Anonymous Coward <nobody@android.com>" ;)
https://android.googlesource.com/platform/packages/apps/Glob...
The article is arguing that only signing tags is insufficient, and that you should sign every commit individually to prevent this scenario.
Gitlab supports push rules that prevent you from pushing on-signed stuff to the repo (which I’m using, and while gitlab is good at this; it’s very easy to accidentally not sign a bunch of commits and have to amend a bunch- which I’m mostly too stupid to do)
I mean. Isn’t the whole point that you only sign your own stuff? Inevitable on merge, sure. But on merge the stuff is all ready at the origin. No?