关于持久提交验证
启用持久提交验证后,在验证签名时, GitHub Enterprise Server 将验证记录与每个提交一起存储。 此记录可确保验证的提交保持其验证状态,即使签名密钥后期轮换、过期或吊销也是如此。 有关持久提交验证的详细信息,请参阅“关于提交签名验证”。
默认情况下,在 GitHub Enterprise Server 3.17 及更高版本中默认启用持久化提交验证。
每个已验证的提交都需要约 80 字节的存储空间。 对于具有大量已验证提交(例如数十万或更多)的大型安装,可能需要禁用此功能来限制数据增长。
禁用持久提交验证
您可以禁用 你的 GitHub Enterprise Server 实例 的持久性提交验证。
-
在管理 shell 中,运行以下命令。
Bash ghe-config app.persist-commit-signature-verification.enabled false
ghe-config app.persist-commit-signature-verification.enabled false -
应用配置。
Bash ghe-config-apply
ghe-config-apply
启用持久提交验证
如果以前禁用了持久提交验证,可以将其重新启用。
-
在管理 shell 中,运行以下命令。
Bash ghe-config app.persist-commit-signature-verification.enabled true
ghe-config app.persist-commit-signature-verification.enabled true -
应用配置。
Bash ghe-config-apply
ghe-config-apply