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

Re: Changing transfer.credentialsInUrl to default to "warn"

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 13, 2025, 21:54 UTC
Message-ID
<Z4WLsmq4rPEMnUXK@tapette.crustytoothpaste.net>
In-Reply-To
<xmqq1px6br7p.fsf@gitster.g>
On 2025-01-13 at 16:42:34, Junio C Hamano wrote:
Show 13 quoted lines
> M Hickford <mirth.hickford@gmail.com> writes:
> 
> > In order to nudge users towards more secure practices (namely,
> > using a credential helper), would anyone else be in favour of
> > changing transfer.credentialsInUrl to default to "warn"?
> 
> I personally do not have a problem with the proposal, but it is
> curious that it is documented as inspecting only .URL and .pushURL
> is not checked.  So, in addition to "once we start warning by
> default, we'd need an advice message to tell the users how to turn
> it off" Derrick says in the commit log message, we would probably
> want to see if we should/can cover .pushURL and need necessary updates
> before it happens.
I agree.

It's not clear to me from the documentation if this only warns if there's a password in the URL or also if there's just a username. (To me, the word "credentials" doesn't seem to explain that very well.) The former I think is fine, the latter is not. Looking at the code, it appears it is the former, so that's good.

Perhaps we should also clarify the documentation so that users can make an educated decision. I'll send a patch.

-- 
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA
Previous: Junio C Hamano
Message 5 of 5 in “Changing transfer.credentialsInUrl to default to "warn"”
  1. M HickfordJan 11, 2025
  2. Junio C HamanoJan 13, 2025
  3. Johannes SchindelinJan 13, 2025
  4. Junio C HamanoJan 13, 2025
  5. brian m. carlsonJan 13, 2025

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.