From: Christian <crich-ml@beronet.com>
To: Junio C Hamano <junkio@cox.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
git@vger.kernel.org, Nick Hengeveld <nickh@reactrix.com>
Subject: Re: git push over http is very dangerous
Date: Fri, 20 Apr 2007 20:37:33 +0200 [thread overview]
Message-ID: <4629086D.5010302@beronet.com> (raw)
In-Reply-To: <7vk5wcrt5m.fsf@assigned-by-dhcp.cox.net>
[-- Attachment #1: Type: text/plain, Size: 2630 bytes --]
hi Junio,
today i got access to the machine with the corrupt git blobs, attached
are the requested files, but there was no error, so i've not attached
the output from stderr.
I hope this helps.
Christian
Junio C Hamano wrote:
> Linus Torvalds <torvalds@linux-foundation.org> writes:
>
>
>> On Mon, 16 Apr 2007, Christian wrote:
>>
>>> We have moved from CVS to git in the beginning of last week, all went well
>>> until this weekend. This weekend one developer wanted to push some of his
>>> local modifications, unfortunately during the push his http connection seemed
>>> to have broken or so. Unfortunately git does not prove if the push went well.
>>> Therefore our repository was broken this morning.
>>>
>> I have to agree: pushing over http really is dangerous.
>> ...
>>
>
> Just for the record, I do not think anybody during that #git
> discussion actually proved that http-push was the culprit. It
> is a very plausible working conjecture, though.
>
> I do not know if Nick is still using his own http-push (or if he
> is still using git for that matter), but just in case he may
> still be interested, I am cc'ing this message to him.
>
>
>> I'd also love it if somebody were to actually look into making
>> http-pushing a bit safer. It really needs somebody who cares about it, or
>> it should likely just be disabled entirely (perhaps with a config option
>> that you have to enable to get it - so that people *realize* that it's not
>> maintained and not really supported).
>>
>
> I think the fetch side does the right thing, more or less, by
> downloading to a temporary file and using move_temp_to_file()
> after validating the SHA-1 matches. I haven't followed the push
> side but as we do not have a single line of code on the
> receiving end, I would not be surprised if there is no error
> checking beyond HTTP response code would give the pushing end.
>
> I would still love to see the corrupt loose object to see how it
> is broken.
>
> Christian, can you do this with the first (i.e. older) commit
> that is broken, and tar up these 7 files for the initial round
> of inspection?
>
> $ git cat-file commit $commit >commit-text 2>commit-error
> $ git ls-tree ${commit} >toplevel-tree 2>toplevel-tree-error
> $ git ls-tree -r -t ${commit} >whole-tree 2>whole-tree-error
> $ cp .git/objects/cd/1aac1a43cfdac07118240f75c0ba7662eb8140 corrupt
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
[-- Attachment #2: git-debug.tar.gz --]
[-- Type: application/gzip, Size: 1045 bytes --]
next prev parent reply other threads:[~2007-04-20 18:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-16 15:22 git push over http is very dangerous Christian
2007-04-16 19:38 ` Linus Torvalds
2007-04-16 19:55 ` Junio C Hamano
2007-04-16 20:20 ` Linus Torvalds
2007-04-20 18:37 ` Christian [this message]
2007-04-21 1:03 ` Junio C Hamano
2007-04-21 17:07 ` Christian
2007-04-21 18:28 ` Junio C Hamano
2007-04-22 7:21 ` Christian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4629086D.5010302@beronet.com \
--to=crich-ml@beronet.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=nickh@reactrix.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.