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

Re: [RFC] Authenticate push via PGP signature, not SSH

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 31, 2008, 05:43 UTC
Message-ID
<20080131054304.GY24004@spearce.org>
In-Reply-To
<47A02EA8.50507@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 20 quoted lines
> Shawn O. Pearce schrieb:
> > I'm currently finishing a side-band-64k protocol extension to the
> > send-pack/receive-pack pair.  My next task after I flush those
> > RFC patches out to the list tonight will be to prototype at least
> > some of the auth1 extension I described.
> 
> I propose to make the syntax of the extension
> 
> server capability:  auth=<list of hash methods>:<challenge>
> client response:    auth=<chosen hash method>
> 
> where <challenge> is a random sequence of non-blank ASCII text, not
> necessarily of a fixed length, but perhaps of a minimum length.
> 
> Then we can extend the list of hash algorithms (that are used for
> authentication purposes) if people think that SHA1 is not secure enough:
> 
>     auth=SHA1,SHA256:random-stuff-goes-here
> 
> I'm not a security expert, so take this with a grain of salt.
I'm not certain this is worth the extra complexity.

One reason I proposed "auth-1" as the extension name is so we could introduce an "auth-2" and make changes in the future if we need to.

But I think there's little value in this authentication hash being anything other than SHA-1. Remember that the data itself in the packfile following the authentication is only protected by SHA-1. If SHA-1 is considered too weak to protect the ref update commands then its likely also too weak to protect the file content following behind those same commands.

Getting stronger authentication here than SHA-1 would probably require changing the commit object name hash to something stronger than SHA-1, and the tree object name hash, etc. Remember that signed tags are only using the SHA-1 of the commit and that's only got the SHA-1 of the tree... ;-)

-- 
Shawn.
Previous: Johannes SixtNext: Pierre Habouzit
Message 14 of 21 in “[RFC] Authenticate push via PGP signature, not SSH”
  1. Sam VilainJan 28, 2008
  2. Shawn O. PearceJan 28, 2008
  3. Jan HudecJan 28, 2008
  4. Sam VilainJan 28, 2008
  5. Shawn O. PearceJan 29, 2008
  6. Shawn O. PearceJan 29, 2008
  7. Pierre HabouzitJan 29, 2008
  8. Shawn O. PearceJan 30, 2008
  9. Sam VilainJan 30, 2008
  10. Shawn O. PearceJan 30, 2008
  11. Pierre HabouzitJan 30, 2008
  12. Sam VilainJan 30, 2008
  13. Johannes SixtJan 30, 2008
  14. Shawn O. PearceJan 31, 2008
  15. Pierre HabouzitJan 30, 2008
  16. Shawn O. PearceJan 31, 2008
  17. Pierre HabouzitJan 31, 2008
  18. Sam VilainJan 30, 2008
  19. Shawn O. PearceJan 30, 2008
  20. Sam VilainJan 31, 2008
  21. Pierre HabouzitJan 28, 2008

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.