[BUG/SECURITY] Password showing in non-interactive terminals
See original GitHub issueDescription:
I used ionic cordova resources
, and CLI asked me to log into my Ionic Pro account.
Email input is visible and ok.
Password entry is written as: Password: [input is hidden]
But when entering my password, it’s not hidden, it’s not displaying *******!
Steps to Reproduce:
ionic cordova resources
Input:
? Email: torzuoli.hugo@gmail.com
? Password: [input is hidden] <It's not!>
Output:
[WARN] You need to be logged into your Ionic account in order to run ionic cordova resources.
Log into your Ionic account
If you don't have one yet, create yours by running: ionic signup
? Email: torzuoli.hugo@gmail.com
? Password: [input is hidden] blablablaxxzrgeoizfuefzfez (fake)
√ Collecting resource configuration and source images - done!
√ Filtering out image resources that do not need regeneration - done!
√ Uploading source images to prepare for transformations - done!
√ Generating platform resources: 6 / 6 complete - done!
√ Modifying config.xml to add new image resources - done!
My ionic info
:
cli packages: (C:\Users\hugo_torzuoli\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 2.3.0
System:
Node : v7.5.0
npm : 4.1.2
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Other Information:
Happened on Git Bash on Windows 10 !
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Missing password for user running in non-interactive shell
I use the CredentialsManager to add credentials instead of using FASTLANE_PASSWORD enviromental for the reason of security in jenkins . Then ...
Read more >security add-trusted-cert asks pas… | Apple Developer Forums
If I run the following command from terminal It asks my password first in terminal and after that It asks my password again...
Read more >why does sudo say my password is wrong? - Ask Ubuntu
Here are some possible causes of sudo not accepting the password in the terminal even though you can enter it graphically to install ......
Read more >Use sudo Command in Non-Interactive Mode - Baeldung
In this tutorial, we'll look at how to tell sudo to work in a non-interactive mode — for example, passing the password as...
Read more >"User interaction is not allowed" trying to sign an OSX app ...
In an attempt to diagnose the issue, I tried running the "security unlock-keychain" command on my local terminal and found that it doesn't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks to you 😄
CLI 4 now detects lack of interactivity, so this is “fixed” in that if you attempt to login via Git Bash, this error is shown:
However, to bypass the error one must type out the credentials in the command itself:
ionic login <email> <password>
.There’s just no other way to solve this for non-interactive terminals. For Windows, I recommend Command Prompt, PowerShell, Hyper, etc.
Thanks for the issue!