Skip to content
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

registry-creds does not hide password when typing #1608

Closed
justechn opened this issue Jun 19, 2017 · 3 comments
Closed

registry-creds does not hide password when typing #1608

justechn opened this issue Jun 19, 2017 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@justechn
Copy link

justechn commented Jun 19, 2017

Is this a BUG REPORT or FEATURE REQUEST? (choose one): Feature Request

Minikube version (use minikube version):
0.19.1

Environment:

  • OS (e.g. from /etc/os-release): macos
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName):
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION):
  • Install tools:
  • Others:

What happened:
When using the registry-creds addon the password is not hidden

$ minikube addons configure registry-creds

Do you want to enable AWS Elastic Container Registry? [y/n]: n

Do you want to enable Google Container Registry? [y/n]: n

Do you want to enable Docker Registry? [y/n]: y
-- Enter docker registry server url: dockerregistry.com
-- Enter docker registry username: myusername
-- Enter docker registry password: mypassword
registry-creds was successfully configured

What you expected to happen:
the password should be hidden

How to reproduce it (as minimally and precisely as possible):
configure the registry creds and type a password

Anything else do we need to know:

@r2d4 r2d4 added the kind/bug Categorizes issue or PR as related to a bug. label Jun 19, 2017
@r2d4
Copy link
Contributor

r2d4 commented Jun 19, 2017

I'll mark this as a bug, it should hide your password while reading it.

Maybe we could use ReadPassword from the crypto/ssh/terminal package,
https://godoc.org/golang.org/x/crypto/ssh/terminal#Terminal.ReadPassword

@r2d4
Copy link
Contributor

r2d4 commented Jun 19, 2017

cc @abbytiz might be a fun bug to tackle, otherwise me or @aaron-prindle could get it

Basically, I think we need another function like AskForStaticValue, maybe something like AskForPasswordValue

See:

func AskForStaticValue(s string) string {

https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/config/configure.go#L82

@r2d4
Copy link
Contributor

r2d4 commented Jul 20, 2017

Fixed by #1708

@r2d4 r2d4 closed this as completed Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants