git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonio García Domínguez" <nyoescape@gmail.com>
To: Ryan Phillips <ryan@trolocsis.com>
Cc: git@vger.kernel.org
Subject: Re: git-http-backend and Authenticated Pushes
Date: Tue, 9 Mar 2010 20:01:12 +0100	[thread overview]
Message-ID: <2b8265361003091101x1e3a3410hc3be2446dc7ddce@mail.gmail.com> (raw)
In-Reply-To: <46a47f951003090908s62512bd7xcbb707205958e004@mail.gmail.com>

Hi Ryan,

> Anybody know what I missed?

I think you need authentication for everything regarding
git-receive-pack, even that GET request. I ran into that issue while
patching Redmine's mod-perl authentication module to handle smart HTTP
[1]. Public projects (which have anonymous pull and authenticated
push) would just not work.

Git first GETs that URL you mention, and then POSTs to the usual
git-receive-pack URL. Both need authentication, but you're only
authenticating the POST. I suggest you authenticate every request to
the git-receive-pack service. Try something like this (warning,
untested!):

>        <LocationMatch "^/git/.*/[^/]*git-receive-pack$">

If anyone else has a better idea, I'd like to know myself :-).

[1]: http://www.redmine.org/issues/4905

Cheers,
Antonio

  reply	other threads:[~2010-03-09 19:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 17:08 git-http-backend and Authenticated Pushes Ryan Phillips
2010-03-09 19:01 ` Antonio García Domínguez [this message]
2010-03-09 19:17   ` BJ Hargrave
2010-03-09 19:23     ` Antonio García Domínguez
2010-03-09 19:27 ` Shawn O. Pearce
2010-03-10  2:13   ` Ryan Phillips

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=2b8265361003091101x1e3a3410hc3be2446dc7ddce@mail.gmail.com \
    --to=nyoescape@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=ryan@trolocsis.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).