What problem or threat does commit signing solve? [closed]

断了今生、忘了曾经 提交于 2019-12-04 03:54:44

The problem that commit signing solves is the same problem that digitally signing a document solves: the problem of verifying its author.

Since only the author has their private key, only they can sign the commit as themselves.

If I trust an particular comitter and they have signed their commit, I can trust their code without necessarily hand-verifying every line.


Consider the case where someone forked your repository on github and then added a bunch of commits which introduced security vulnerabilities to your code. They made these commits with the tuple author name, author email, commit name, commit email set to one of the original authors.

Without commit signing, there is no way to verify that they are not the original author.

With commit signing, these forged commits cannot be signed because the forger does not have the author's private key.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!