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.

az login --password-file

See original GitHub issue

Related command az login

Is your feature request related to a problem? Please describe. As a bash user logging script output I do not want to inadvertently capture a secret in my logs. To use az login with a password I need to pass the password as an argument. This forces me to load the password into a shell variable which increases the likelihood the password will be captured in a log.

Describe the solution you’d like I’d like az login to support an option --password-file which can be used instead of --password. The value will be a path to a file from which the password can be read.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jiaslicommented, May 27, 2022

@kingces95, fully understood. I have made this PR a feature request and will certainly discuss with our PM @chasewilson @Jacekey23.

0reactions
pingtouskarcommented, Oct 13, 2022

@jiasli Any progress on this fetaure ? This a must have for enterprise to use the azure-cli without compromizing the creds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign in with Azure CLI — Login and Authentication
Sign in with credentials on the command line ; read -sp "Azure password: " ; echo && az login -u <username> -p $AZ_PASS....
Read more >
1.295 remote_login_passwordfile - Oracle Help Center
REMOTE_LOGIN_PASSWORDFILE specifies whether Oracle checks for a password file. ... The password of any user who has SYS* admin privileges ( SYSDBA ,...
Read more >
John the Ripper - usage examples - Openwall
First, you need to get a copy of your password file. ... The simplest way is to let John use its default order...
Read more >
How to use an Encrypted Password File in PowerShell Scripts?
Basically, we need to get the credentials from the user (once!) and store the encrypted password in a file. Here is the PowerShell...
Read more >
Password file required for commandline job execution?
User authentication (also for connecting to DS Designer) has been introduced in DS 4.0. Add a Comment ...
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