-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide password when supplying basic credentials #432
Comments
Hmm.. how strange. For all platform we try and disable echoing of typed characters in the password field. See PosixTerminal and WindowsTerminal A couple of questions for you:
Can you also please try this again, but set the $ GCM_TRACE=/tmp/gcm.log git clone https://review.gerrithub.io/a/felipecrs/gerrit-jenkins-test You should see some lines about setting echo state of the terminal. On my machine (macOS with Terminal.app and bash) I see the following (password is not being echoed): |
I was able to reproduce this in all the scenarios I tested:
All using secretService as credentialStore. All using ZSH (but I just tested with Bash and the same happens). gcm.logIndeed, there are some references about echo.
|
Hi @felipecrs, I've identified the problem (native Thanks for reporting this :) |
That's awesome! Thank you very much. :) |
I noticed this (that git no longer hides passwords but shows them in plaintext) recently, on Linux Mint Debian Edition with gnome-terminal (its --version says "3.30.2 using VTE 0.54.2 +GNUTLS"). Password prompts used to be hidden (and still are for non-git stuff). It is possible that I experienced the issue because this was the first time I worked on a non-github repository after GitHub made me install something to support better authentication (possibly gcmcore) a few months ago. Initially I had gcmcore 2.0.475.64295 and hoped that downloading and installing the latest .deb package would include your fix. But it is still there with 2.0.498.54650. Could you please clarify if "next release" means that I have to wait for something like version 2.1? I attach my gcm.log by enabling the GCM_TRACE as requested above. I called |
Currently, the following happens:
Ideally, the password should be hidden.
The text was updated successfully, but these errors were encountered: