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

Re: git-pull and tag objects

From
Theodore Tso <tytso@mit.edu>
Date
Feb 11, 2007, 00:25 UTC
Message-ID
<20070211002501.GB19656@thunk.org>
In-Reply-To
<Pine.LNX.4.64.0702100938540.8424@woody.linux-foundation.org>
On Sat, Feb 10, 2007 at 09:56:25AM -0800, Linus Torvalds wrote:
> We could verify tags automatically, of course, but the question is, what 
> would the policy be? 

What I would propose (post-1.5.0!) is that the policy file be local to the repository, and consist of an ordered list of regular expressions and and lists of PGP keys associated with each regexp. So for example, I might have in my repository a config file which states that any tag that matches v2.6.[0-9]+ and v2.6.[0-9]+-rc[0-9]+ must be signed by PGP key 0x76E21CBB (Linus's key).

What I would very much like is for the tags to be automatically verified whenever I do a git-fetch operation, and for me to get a big, fat, warning if some tag isn't signed by an authoried key.

So this would help make sure that when I'm pulling from kernel.org, I'm getting something that originally came from Linus, and someone hasn't managed to insert trojan into the git tree, but it doesn't help in between releases. In order to solve that problem we would have to have some kind of scheme where branch heads could be optionally signed, and then transfered over to the public repository. Then, in the git config file, we could list an expected set of keys that should sign any branch head for a particular tracking branch.

Since all of this is local policy, someone who wanted to have a different set of trusted peers, they could do so. And, of course, someone who wanted to run completely open with no gpg signature checking at all could do so. (aka "rms/rms mode" :-)

Does this make sense?
						- Ted
Previous: Jakub NarebskiNext: Linus Torvalds
Message 11 of 26 in “git-pull and tag objects”
  1. Alex BenneeFeb 8, 2007
  2. Alex RiesenFeb 9, 2007
  3. Junio C HamanoFeb 9, 2007
  4. git-fetch: document automatic tag following.Junio C Hamano, Feb 10, 2007
  5. Theodore TsoFeb 10, 2007
  6. Linus TorvaldsFeb 10, 2007
  7. Jakub NarebskiFeb 10, 2007
  8. Linus TorvaldsFeb 10, 2007
  9. Junio C HamanoFeb 11, 2007
  10. Jakub NarebskiFeb 12, 2007
  11. Theodore TsoFeb 11, 2007
  12. Linus TorvaldsFeb 11, 2007
  13. Junio C HamanoFeb 11, 2007
  14. Linus TorvaldsFeb 11, 2007
  15. Junio C HamanoFeb 11, 2007
  16. Junio C HamanoFeb 11, 2007
  17. Linus TorvaldsFeb 11, 2007
  18. Junio C HamanoFeb 11, 2007
  19. Theodore TsoFeb 12, 2007
  20. Junio C HamanoFeb 13, 2007
  21. Linus TorvaldsFeb 14, 2007
  22. Junio C HamanoFeb 14, 2007
  23. Johannes SchindelinFeb 14, 2007
  24. Linus TorvaldsFeb 14, 2007
  25. Jakub NarebskiFeb 15, 2007
  26. Johannes SchindelinFeb 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.