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

Re: [PATCH] documentation: add git transport security notice

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 24, 2013, 22:35 UTC
Message-ID
<7vtxkn5e8o.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130624222703.GA32270@paksenarrion.iveqy.com>
Fredrik Gustafsson <iveqy@iveqy.com> writes:
Show 15 quoted lines
> On Tue, Jun 25, 2013 at 07:57:35AM +1000, Fraser Tweedale wrote:
>>  The git transport is insecure and should be used with caution on
>>  unsecured networks.
>
> I don't understand this. How is git:// insecure?
>
> It's protocol with no authentication, because it's a protocol used for
> public sharing.
>
> The only point of encrypt git:// would be to verify that the recieved
> data has not been altered along the way. However you can always trust
> that the end result is an valid copy of the remote.
>
> To me that means that it's as secure as a non-authentication protocoll
> needs to be.

If your DNS is poisoned, or your router is compromised to allow your traffic diverted, you may be fetching from somewhere you did not intend to. As I explained in a separate message, that does not necessarily result in your repository corrupting, but the result, even though it may be "git fsck" clean at the bit level, needs additional validation measure, such as signed tags, to be safely used to base your further work on top.

> How would an "evil network" be able to do any harm to a git transport
> over git://?

Yes, strictly speaking, it may not be "transport being insecure", but the effect on the aggregated whole is the same.

Previous: Fredrik GustafssonNext: Fredrik Gustafsson
Message 5 of 7 in “documentation: add git transport security notice”
  1. documentation: add git transport security noticeFraser Tweedale, Jun 24, 2013
  2. Junio C HamanoJun 24, 2013
  3. Fraser TweedaleJun 24, 2013
  4. Fredrik GustafssonJun 24, 2013
  5. Junio C HamanoJun 24, 2013
  6. Fredrik GustafssonJun 24, 2013
  7. Junio C HamanoJun 24, 2013

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.