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

Re: [Wishlist] could git tell which password it is asking when asking a password.

From
Ted Zlatanov <tzz@lifelogs.com>
Date
Jul 1, 2011, 17:04 UTC
Message-ID
<87aacygcfx.fsf@lifelogs.com>
In-Reply-To
<877h82nlua.dlv@debian.org>
On Fri, 01 Jul 2011 15:59:09 +0200 Rémi Vanicat <vanicat@debian.org> wrote: 

RV> When git is asking for a password (for example for pushing over https) RV> it call the $GIT_ASKPASS script with only "Password: " as a an argument, RV> so when one have several remote, it might not know which one is asking RV> the password.

Seconded, I run into this all the time. A configurable prompt with %h for the host, etc. would be really nice.

RV> It would be interesting also to plug some sort of password-safe unto RV> git, or some "git-agent".

This would also be really nice. ~/.netrc is not a great place to put passwords for the HTTP transport. In GNU Emacs we have ~/.authinfo.gpg with the same content as ~/.netrc but encrypted by GPG and thus more secure (the user is either prompted for the password, if the file is encrypted symmetrically, or the user simply loads their private key into the GPG agent). I believe all this can be done with the GPGME library. There's also the Secrets API on newer Gnome and KDE installs, which has a pretty nice D-Bus interface.

But is this a libcurl feature request? Or can a Git plugin (an alternate HTTPS transport maybe?) handle it?

Thanks Ted

Previous: Jeff KingNext: Ted Zlatanov
Message 11 of 15 in “[Wishlist] could git tell which password it is asking when asking a password.”
  1. Rémi VanicatJul 1, 2011
  2. Junio C HamanoJul 1, 2011
  3. Junio C HamanoJul 1, 2011
  4. Shawn PearceJul 1, 2011
  5. Junio C HamanoJul 1, 2011
  6. Rémi VanicatJul 1, 2011
  7. Ted ZlatanovJul 1, 2011
  8. Junio C HamanoJul 1, 2011
  9. Jeff KingJul 1, 2011
  10. Jeff KingJul 1, 2011
  11. Ted ZlatanovJul 1, 2011
  12. encrypted netrc for Git (was: [Wishlist] could git tell which password it is asking when asking a password.)Ted Zlatanov, Jul 14, 2011
  13. Jeff KingJul 14, 2011
  14. Ted ZlatanovJul 15, 2011
  15. Jeff KingJul 15, 2011

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.