git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: git@vger.kernel.org
Subject: Re: [Wishlist] could git tell which password it is asking when asking a password.
Date: Fri, 01 Jul 2011 12:04:02 -0500	[thread overview]
Message-ID: <87aacygcfx.fsf@lifelogs.com> (raw)
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

  parent reply	other threads:[~2011-07-01 18:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01 13:59 [Wishlist] could git tell which password it is asking when asking a password Rémi Vanicat
2011-07-01 17:00 ` Junio C Hamano
2011-07-01 17:16   ` Junio C Hamano
2011-07-01 17:18     ` Shawn Pearce
2011-07-01 17:50       ` Junio C Hamano
2011-07-01 19:25         ` Rémi Vanicat
2011-07-01 20:01           ` Ted Zlatanov
2011-07-01 20:30           ` Junio C Hamano
2011-07-01 20:48             ` Jeff King
2011-07-01 20:46   ` Jeff King
2011-07-01 17:04 ` Ted Zlatanov [this message]
2011-07-14 14:05   ` encrypted netrc for Git (was: [Wishlist] could git tell which password it is asking when asking a password.) Ted Zlatanov
2011-07-14 15:00     ` Jeff King
2011-07-15 17:08       ` encrypted netrc for Git Ted Zlatanov
2011-07-15 21:05         ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aacygcfx.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).