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

Re: Commit signing

From
Horst H. von Brand <vonbrand@inf.utfsm.cl>
Date
Jan 15, 2007, 12:37 UTC
Message-ID
<200701151237.l0FCbOYK007378@laptop13.inf.utfsm.cl>
In-Reply-To
<spearce@spearce.org>
Shawn O. Pearce <spearce@spearce.org> wrote:
> Andy Parkins <andyparkins@gmail.com> wrote:
[...]
Show 7 quoted lines
> > The more I think about it, the more it could be a reasonable question.
> > In my own repository I can obviously create whatever commits i like,
> > claiming them to be from whomever I like just by altering a few config
> > settings.  If I put a few of those in my own repository and then
> > managed to persuade Junio to pull from me - wouldn't I have faked
> > commits from another developer? However, I wouldn't be able to fake a
> > gpg signature.
[...]
Show 9 quoted lines
> What I'm actually doing in one particular environment is checking
> the committer string against a database of known committer strings
> associated with the current UNIX uid.  My update hook[*1*] performs
> a `git log --pretty=raw $3 --not --all` query to determine any
> commits which are coming in as part of this push and which are not
> already referenced by an existing head or tag in this repository.
> For each of those the committer line *must* match one stored in
> the allowed-committers file for the current user, as these are
> brand new commits being introduced to the repository.

This only covers the "pure star" (centralized, CVS-like) topology: Each one only pushes their own changes, nobody collects changes from others and pushes the sum.

-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513
Previous: Horst H. von Brand
Message 3 of 3 in “Re: Importing from tarballs; add, rm, update-index?”
  1. Horst H. von BrandJan 13, 2007
  2. Horst H. von BrandJan 14, 2007
  3. Horst H. von BrandJan 15, 2007

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.