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

Re: [PATCH] http: http.emptyauth should allow empty (not just NULL) usernames

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Oct 4, 2016, 00:07 UTC
Message-ID
<20161004000714.kbawbnh5y3x7h54l@vauxhall.crustytoothpaste.net>
In-Reply-To
<335996ca2642478386e94d9f3dc43223@exmbdft7.ad.twosigma.com>
On Mon, Oct 03, 2016 at 09:54:19PM +0000, David Turner wrote:
Show 8 quoted lines
> 
> > I dunno. The code path you are changing _only_ affects anything if the
> > http.emptyauth config is set. But I guess I just don't understand why you
> > would say "http://@gitserver" in the first place. Is that a common thing?
> > 
> > -Peff
> 
> I have no idea if it is common.  I know that we do it.
I've never seen this.  RFC 3986 does seem to allow it:
  authority   = [ userinfo "@" ] host [ ":" port ]
  userinfo    = *( unreserved / pct-encoded / sub-delims / ":" )
I normally write it like one of these:
  https://bmc@git.crustytoothpaste.net/
  https://:@git.crustytoothpaste.net/

Of course, the username is ignored in the first one, but it serves a documentary purpose for me.

> The reason we have a required-to-be-blank username/password is
> apparently Kerberos (or something about our particular Kerberos
> configuration), which I treat as inscrutable black magic.

The issue with git is usually that it uses libcurl, which won't do authentication unless it has a username or password, even if those are empty or ignored. http.emptyAuth was designed for this case.

With Kerberos (at least in my experience), the username doesn't actually get sent, since you send only ticket-related information over the channel, and that has your principal name embedded.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Previous: Junio C Hamano
Message 7 of 7 in “http: http.emptyauth should allow empty (not just NULL) usernames”
  1. http: http.emptyauth should allow empty (not just NULL) usernamesDavid Turner, Oct 3, 2016
  2. Jeff KingOct 3, 2016
  3. David TurnerOct 3, 2016
  4. Jeff KingOct 3, 2016
  5. David TurnerOct 3, 2016
  6. Junio C HamanoOct 3, 2016
  7. brian m. carlsonOct 4, 2016

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.