question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG/SECURITY] Password showing in non-interactive terminals

See original GitHub issue

Description: 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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
HZoolycommented, Jul 30, 2018

Thanks to you 😄

1reaction
imhoffdcommented, Jul 30, 2018

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:

❯ ionic login
[WARN] You are already logged in as <email>!
[WARN] Command ran non-interactively due to --no-interactive flag, CI being detected, non-TTY, or a config setting.
[ERROR] email must not be empty.
[ERROR] email is an invalid email address.
[ERROR] password must not be empty.
Use the --help flag for more details.

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found