Re:Git Files Hidden in Plain Sight
by whirlwin on Tuesday August 01, 2023 @03:52AM
(#36953509)
Isn't the best way to verify the integrity to use git signed commits? GitHub has great support for this
[ Parent
| on HN ]
You’re mixing up integrity and authenticity: git provides integrity through its basic design; commit signing additionally adds authenticity (sort of).
But again: you don’t actually get authenticity if you obtain the public key from the same untrusted channel as the signed material. The key has to come from another channel (another simplification, but true in PGP and git’s case). That channel can be the user’s GitHub profile, website, etc., but it can’t be the repository itself.