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

Re: [REQ] Allow alternatives to gpg

From
Jeff King <peff@peff.net>
Date
Apr 16, 2017, 04:43 UTC
Message-ID
<20170416044305.dutwxrkdlv7rgj7p@sigill.intra.peff.net>
In-Reply-To
<9727e699-d97b-e8f2-ca48-574fc4f014af@gmail.com>
On Sat, Apr 15, 2017 at 08:10:41PM -0700, Nathan McSween wrote:
Show 7 quoted lines
> I would like to try to make git signing pluggable, this would allow for
> using tools such as signify[1].
> Now I'm wondering if this endeavor is worth taking and what would need to be
> changed besides
> gpg-interface?
> 
> [1] http://man.openbsd.org/signify

I haven't used signify, but I have played around a bit with using gpgsm with git. You can actually get pretty far without writing any code by tweaking gpg.program, as long as:

  - your tool can generate and verify detached signatures
  - it follows the gpg command-line convention (or you wrap it in a
    script which converts the two)

There are a few quirks around detecting the "BEGIN PGP MESSAGE" block. It's not necessary for tag signatures, but is for commit signatures (IIRC). There's some discussion in this thread:

  http://public-inbox.org/git/1459432304-35779-1-git-send-email-cmn@dwim.me/T/#u

Which isn't to say we shouldn't teach Git natively to understand more encryption types. But it may be useful to prototype and get experience first by plugging the tool in via the config.

(I don't have opinions on signify itself as a tool for general purpose signatures).

-Peff
Previous: Nathan McSween
Message 2 of 2 in “[REQ] Allow alternatives to gpg”
  1. Nathan McSweenApr 16, 2017
  2. Jeff KingApr 16, 2017

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.