From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ted Zlatanov Subject: Re: [Wishlist] could git tell which password it is asking when asking a password. Date: Fri, 01 Jul 2011 12:04:02 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87aacygcfx.fsf@lifelogs.com> References: <877h82nlua.dlv@debian.org> Reply-To: git@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Jul 01 20:45:15 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QciiI-0003QH-3o for gcvg-git-2@lo.gmane.org; Fri, 01 Jul 2011 20:45:14 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754874Ab1GASpI convert rfc822-to-quoted-printable (ORCPT ); Fri, 1 Jul 2011 14:45:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:57137 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757536Ab1GASpH (ORCPT ); Fri, 1 Jul 2011 14:45:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qcii9-0003Nq-PQ for git@vger.kernel.org; Fri, 01 Jul 2011 20:45:05 +0200 Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jul 2011 20:45:05 +0200 Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jul 2011 20:45:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: git@vger.kernel.org X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:i9lkV0SKlecis79+O+kjkJi3Wj8= Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, 01 Jul 2011 15:59:09 +0200 R=E9mi Vanicat = wrote:=20 RV> When git is asking for a password (for example for pushing over htt= ps) RV> it call the $GIT_ASKPASS script with only "Password: " as a an argu= ment, RV> so when one have several remote, it might not know which one is ask= ing RV> the password.=20 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 unt= o RV> git, or some "git-agent".=20 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 int= o 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