git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC] GPG-Signed pushes & commits: differentiating between no signature and an unknown key

From
Robin H. Johnson <robbat2@gentoo.org>
Date
Feb 1, 2016, 22:22 UTC
Message-ID
<robbat2-20160201T220940-187080200Z@orbis-terrarum.net>

Format string %G? includes state 'N', which is described as "no signature".

If you try to verify a commit or push for which you have no key (and you don't automatically fetch from the keyservers [1]), then the format string ALSO contains 'N', which is incorrect.

It should be possible to differentiate between a commit/push with NO signature, and a commit/push signed with an unknown key.

In the case of verifying signed pushes before accepting them, this is critical to providing a useful error message to the user. Presently, if %G? evaluates to 'N', then none of the GIT_PUSH_CERT* env vars are set.

In the case of the signed push with the unknown key, they should remain set.

[1] Eg, if you have an externally curated keyring and use trust-model always.

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead, Foundation Trustee
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Next: Junio C Hamano
Message 1 of 4 in “[RFC] GPG-Signed pushes & commits: differentiating between no signature and an unknown key”
  1. Robin H. JohnsonFeb 1, 2016
  2. Junio C HamanoFeb 1, 2016
  3. Robin H. JohnsonFeb 2, 2016
  4. Junio C HamanoFeb 2, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.