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

Tracability in git commits

From
RPRichard Purdie <rpurdie@rpsys.net>
Date
Apr 29, 2008, 12:55 UTC
Message-ID
<1209473739.5642.31.camel@dax.rpnet.com>
Hi,

I've been wondering about whether its possible to provide some degree of traceability of commits to a shared git repository. The potential nightmare scenario is one developer making a commit pretending to be someone else.

Assuming a shared server using something like gitosis each set of commits is made under a certain ssh ID and what I'd like is to be able to validate that against the commits so we could tell that commits A-D were made by ID Z.

I see a repository as a linear progression of commits and merges.

The simplest security check would check each commit/merge on this linear progression and make sure it matches the ssh ID. The problem is where someone merges in some external tree, someone else pulls it and pushes it, only fast forward merges are made and the ssh 'ID' no longer matches the ID of the merge which is in the linear path.

Someone mentioned some patches that are on the mailing list atm and the idea of never allowing fast forward merges. Would the "never" policy of fast forward merges solve this problem? Is there a simpler way to address this or are there problems I'm not seeing?

Regards,
Richard
Next: Johannes Schindelin
Message 1 of 15 in “Tracability in git commits”
  1. Richard PurdieApr 29, 2008
  2. Johannes SchindelinApr 29, 2008
  3. Junio C HamanoApr 29, 2008
  4. Richard PurdieApr 29, 2008
  5. Shawn O. PearceApr 30, 2008
  6. Ping YinApr 30, 2008
  7. Miklos VajnaApr 30, 2008
  8. Shawn O. PearceMay 1, 2008
  9. Ping YinMay 1, 2008
  10. Jakub NarebskiApr 30, 2008
  11. Richard PurdieApr 30, 2008
  12. Martin LanghoffMay 1, 2008
  13. Martin LanghoffMay 1, 2008
  14. Junio C HamanoMay 1, 2008
  15. Martin LanghoffMay 1, 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.