From: Tay Ray Chuan Date: Tue, 20 Jul 2010 07:46:18 GMT Subject: Re: [http] Git error messages reveal password encoded in the URL Message-ID: In-Reply-To: <201007200241.46972.jnareb@gmail.com> Hi: On Tue, Jul 20, 2010 at 8:41 AM, Jakub Narebski wrote: > Dnia wtorek 20. lipca 2010 01:25, Ketan Padegaonkar napisał: [snip] > Can't you use ~/.netrc file[1] instead?  As far as I see this would not > show password info on error.  Not that the current situation should > not be fixed, but it might be worthwhile workaround for a time. > > The ~/.netrc file would look like this for your example: > >  machine host >  login user >  password pass > > You should of course `chmod 600 ~/.netrc` > > [1] This is unfortunately underdocumented: only this documentation > Documentation/howto/setup-git-server-over-http.txt mentions ~/.netrc > file.  I think that handling the $HOME/.netrc is done by the curl > library that git uses, see libcurl-tutorial(3) manpage. +1 This is the only way I know of to "hide" your password. Of course, depending on your authentication scheme, your efforts for this setup may prove worthless. -- Cheers, Ray Chuan