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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 13, 2025, 22:27 UTC
Message-ID
<xmqq34hm8i4b.fsf@gitster.g>
In-Reply-To
<7a60c9ec-8f98-73d3-4539-d96b63a4f442@gmx.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> The reason why `.pushURL` was not handled as well is that it is way too
> common for Git users to call `git clone https://<user>:<password>@<host>`
> ...
> There is no similar indirect way to leak credentials into `pushURL`

Ah, so it is not primarily between .URL vs .pushURL, but the difference is between "clone" that leaves the URL used on the command line in the configuraiton, vs "push" that does not.

And because .pushURL has to be explicitly configured by the end-user, there is much less need to remind that they are _storing_ credential material in the configuration files.

The reasoning does make sense.
> Having said that, I would be in favor of letting
> `transfer.credentialsInURL` treat `remote.*.pushURL` in the same manner as
> `remote.*.url`.
Amen to that.  Thanks.
Previous: Johannes SchindelinNext: brian m. carlson
Message 4 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.