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

Re: [PATCH] Make http-backend REMOTE_USER configurable

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 29, 2012, 22:02 UTC
Message-ID
<7vzkazoyk3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1333051139-14262-1-git-send-email-willsk@bnl.gov>
William Strecker-Kellogg <willsk@bnl.gov> writes:
Show 8 quoted lines
> The http-backend looks at $REMOTE_USER and sets $GIT_COMMITTER_NAME to
> that for use in the hooks. At our site we have a third party
> authentication module for our proxy (Shibboleth) which sets an alternative
> environment variable that our backend sees instead of REMOTE USER.
>
> This patch adds the config option http.remoteuser which changes what
> environment variable is inspected by the http-backend code (it defaults
> to REMOTE_USER).

What is the chain of systems that pass the authenticated ident down to this CGI program? Can another part of that chain stuff the value of SHIBBOLETH_USER (or whatever) to REMOTE_USER before running it?

As a design, I am not convinced this is a good change.  

What if the next person wants to interoperate with an authentication system that passes the same information via a mechanism different from environment variables? This change does not help him at all, as it is still married to "the information has to come from an environment variable" limitation.

What if an authentication system can supply more appropriate committer ident information other than just the uesrname part?

If it were a patch to teach the CGI program a new command line parameter, e.g. --log-as="C O Mitter <committer@example.xz>", it may have made a lot more sense, though.

Previous: William Strecker-KelloggNext: Jeff King
Message 2 of 8 in “Make http-backend REMOTE_USER configurable”
  1. Make http-backend REMOTE_USER configurableWilliam Strecker-Kellogg, Mar 29, 2012
  2. Junio C HamanoMar 29, 2012
  3. Jeff KingMar 29, 2012
  4. Jeff KingMar 29, 2012
  5. Junio C HamanoMar 30, 2012
  6. William Strecker-KelloggMar 30, 2012
  7. Jeff KingMar 30, 2012
  8. Junio C HamanoMar 30, 2012

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.