df4VW
V2EX  ›  问与答

GitHub GPG 加密的意义?

  •  
  •   df4VW · Apr 6, 2016 · 4511 views
    This topic created in 3869 days ago, the information mentioned may be changed or developed.

    GitHub 今天新加入了 GPG 签名的验证,虽然是好事但是我还是没明白这个加密对于一个代码托管服务的意义

    有没有老司机来帮忙解释下

    https://github.com/blog/2144-gpg-signature-verification

    10 replies  •  2016-04-06 23:48:07 +08:00
    bitsmix
    bitsmix
    Apr 6, 2016❤️4
    1
    Linus 没有办法给我提交代码了
    goool
    goool
    Apr 6, 2016 via iPhone
    2
    与加密无关,是 gpg 签名。帮你确认是谁提交了代码。
    chinvo
    chinvo
    Apr 6, 2016❤️1
    3
    Git 本身支持 GPG 签名。 GitHub 现在只是把这个功能显示在页面上了。

    GPG 签名有助于验证提交者身份
    orzfly
    orzfly
    Apr 6, 2016
    4
    然而全文根本就没提到加密,我实在是不明白你怎么说着说着就从签名讲到加密上去了。
    orzfly
    orzfly
    Apr 6, 2016
    5
    @bitsmix 并不是没有办法给你提交呀……只是其他人没有办法用你的密钥签名,从而不能证明是你提交的。

    如果你信任别人的改动,你可以在他提交之后自己产生一个签名了的 commit 。因为 commit 有 parent 属性,一旦给 commit 签名,相当于你便确认了整个历史。
    julyclyde
    julyclyde
    Apr 6, 2016
    6
    在 PGP 信任模型里, github 现在可以扮演某种“介绍人”角色了
    AstroProfundis
    AstroProfundis
    Apr 6, 2016❤️1
    7
    @orzfly 楼上的意思是不能自己伪造 Linus 的提交了...
    Pastsong
    Pastsong
    Apr 6, 2016❤️2
    8
    为了防止 git-blame-someone-else
    https://github.com/jayphelps/git-blame-someone-else
    DIYgod
    DIYgod
    Apr 6, 2016
    9
    @Pastsong 这个好贱哈哈哈哈哈哈
    bitsmix
    bitsmix
    Apr 6, 2016
    10
    @orzfly 你反过来想。如同 @AstroProfundis 说的一样。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2193 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 14:29 · PVG 22:29 · LAX 06:29 · JFK 09:29
    ♥ Do have faith in what you're doing.