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

Re: Git remote origin leaks user access token

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Jul 2, 2024, 21:13 UTC
Message-ID
<ada57994-b7cc-4a21-b41d-400d63b243d5@zytor.com>
In-Reply-To
<20240701183515.GF3199@coredump.intra.peff.net>
On 7/1/24 11:35, Jeff King wrote:
Show 21 quoted lines
> On Mon, Jul 01, 2024 at 04:27:43PM +0000, brian m. carlson wrote:
> 
>> I do want to point out that several people, not just me, have worked
>> together to make using a credential helper as easy and robust as
>> possible.  I mention this not to contradict Jonathan, who I think is
>> also trying to help in this regard, but mostly to mention that as a
>> project we've been trying to gently nudge people into doing the more
>> secure thing.  If people have further suggestions on how to make this
>> easier for users in the future, I'm very eager to hear them.
> 
> One thing we could do is refuse to store credentials in plaintext
> config. That helps people who aren't aware of the recommendations you
> mentioned end up more secure (though at the expense of convenience, as
> subsequent fetches won't work if you don't have a credential helper set
> up).
> 
> Some old discussion and possible patches here if anybody wants to pick
> up the topic:
> 
>    https://lore.kernel.org/git/nycvar.QRO.7.76.6.1905172121130.46@tvgsbejvaqbjf.bet/
> 

That could be a default, but please in that case add an override option. I can't even begin to list the number of fail whales that have been committed in the name of "security" without some kind of No Dammit I Really Mean It™ override. Everything from MTAs refusing to deliver to shared mailboxes for role accounts (due to giving group access) to being unable to connect to old embedded devices because "SSL 3 is dangerous and deprecated" -- which, of course, is true, but when you are on an isolated network and can't downgrade the existing device to unencrypted and can't upgrade it to TLS, it is an amazing headache.

	-hpa
Previous: Jeff KingNext: Jeff King
Message 4 of 6 in “Re: Git remote origin leaks user access token”
  1. Jonathan NiederJul 1, 2024
  2. brian m. carlsonJul 1, 2024
  3. Jeff KingJul 1, 2024
  4. H. Peter AnvinJul 2, 2024
  5. Jeff KingJul 2, 2024
  6. Junio C HamanoJul 1, 2024

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.