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