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

Re: [http] Git error messages reveal password encoded in the URL

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Jul 19, 2010, 21:16 UTC
Message-ID
<AANLkTilby7GWOuObh6W4z_caUG83O5A5Wh4Wb-JJnSdJ@mail.gmail.com>
In-Reply-To
<201007192310.56399.jnareb@gmail.com>
On Mon, Jul 19, 2010 at 14:10, Jakub Narebski <jnareb@gmail.com> wrote:
Show 18 quoted lines
> Dnia poniedziałek 19. lipca 2010 23:05, Jacob Helwig napisał:
>> On Mon, Jul 19, 2010 at 14:02, Jakub Narebski <jnareb@gmail.com> wrote:
>>> Ketan Padegaonkar <ketanpadegaonkar@gmail.com> writes:
>>>
>>>> We use http to serve our git repos, in order for git to not ask me a
>>>> username/password everytime,
>>>
>>> Errr... WTF?  Can't you configure SSH (use ssh-add, perhaps together with
>>> tool such as keychain) to use public key based authentication?
>>>
>>
>> I don't think SSH/ssh-agent/pubkey would actually help, given that
>> it's a https URL.  Unless I'm missing something here?
>
> I was referring to 'we use http [...] _in order_ for git to not ask me
> a username/password everywhere'.  I just noted that you can make git
> not ask a username/password everywhere when using ssh:// URLs.
>

Ah, I read it to mean "We use HTTP. I encode the user and password in the URL to prevent it from asking all the time", not "We use HTTP with an encoded user and password to prevent it from asking". If it's the latter, then you're definitely right: Using SSH + pubkey authentication is probably a _much_ better choice.

Previous: Jakub NarebskiNext: Ketan Padegaonkar
Message 5 of 8 in “[http] Git error messages reveal password encoded in the URL”
  1. Ketan PadegaonkarJul 19, 2010
  2. Jakub NarebskiJul 19, 2010
  3. Jacob HelwigJul 19, 2010
  4. Jakub NarebskiJul 19, 2010
  5. Jacob HelwigJul 19, 2010
  6. Ketan PadegaonkarJul 19, 2010
  7. Jakub NarebskiJul 20, 2010
  8. Tay Ray ChuanJul 20, 2010

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.