From: William Strecker-Kellogg <willsk@bnl.gov>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jeff King <peff@peff.net>, Git List <git@vger.kernel.org>
Subject: Re: [PATCH] Make http-backend REMOTE_USER configurable
Date: Thu, 29 Mar 2012 23:24:39 -0400 [thread overview]
Message-ID: <4F752777.2020000@bnl.gov> (raw)
In-Reply-To: <7vk422q2ho.fsf@alter.siamese.dyndns.org>
On 03/29/2012 09:52 PM, Junio C Hamano wrote:
> Jeff King <peff@peff.net> writes:
>
>> On Thu, Mar 29, 2012 at 06:22:30PM -0400, Jeff King wrote:
>>
>>> I think an even better thing would be for http-backend to leave
>>> GIT_COMMITTER_* alone if it exists; that is the usual well-known
>>> interface for setting such things. And then you could specify a
>>> detailed committer name and email if you want, or leave them blank to
>>> pull from $REMOTE_USER as we do now. As it is now, even if you specify
>>> GIT_COMMITTER_EMAIL, it gets overwritten with
>>> "$REMOTE_USER@http.$REMOTE_ADDR".
>>
>> That patch would look something like this:
>
> It would regress for somebody who is running the CGI program while
> exporting these environment variables pointing at himself and relying on
> the fact that these are canceled by REMOTE_USER/ADDR (perhaps a web-based
> editor can write into some repository and commits made by that editor
> takes the ident information from COMMITTER variables, while another part
> of the webserver takes a push by spawning the http backend???).
>
> Which is very unlikely.
Agreed.
>
> If somebody else comes up with a valid scenario to show why this patch is
> a bad idea, I'd stand corrected but at the same time I'd be very surprised.
>
> But I think this is the right thing to do, even though it is not related
> to the issue William wanted to address with his patch.
>
The reason we're interested in this is validation -- who can push to our
production puppet branch is determined by a post-update hook. A wrapper
around http-backend like Jeff's combined with his patch would accomplish
what we need just fine.
> Care to sign it off?
>
next prev parent reply other threads:[~2012-03-30 3:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 19:58 [PATCH] Make http-backend REMOTE_USER configurable William Strecker-Kellogg
2012-03-29 22:02 ` Junio C Hamano
2012-03-29 22:22 ` Jeff King
2012-03-29 22:26 ` Jeff King
2012-03-30 1:52 ` Junio C Hamano
2012-03-30 3:24 ` William Strecker-Kellogg [this message]
2012-03-30 7:01 ` Jeff King
2012-03-30 16:13 ` Junio C Hamano
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=4F752777.2020000@bnl.gov \
--to=willsk@bnl.gov \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/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.