-
Notifications
You must be signed in to change notification settings - Fork 14
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
Prompt for Lagoon Variable #344
Comments
The problem though is that not all variables are passwords or secrets. |
Oh, agreed. That's why my plan is that we use the
HTH, |
Can you show how you think this would work with a complete command line example please |
In the example above, the value was entered but not echoed. While it's traditional for programs like SSH not to accept passwords on STDIN, this might be a case where the password should be accepted on STDIN.
In the second example, above, the value "Hi! I'm a value" was entered, and is visible at the prompt. This is visible because The third case I won't give an example of, because it's just using HTH, |
Yeah, I don't know about this whole prompt switch thing like that. If this was going to be something we support, I would have The Like this then:
And then the default behaviour
If a user did something like this, it would have to ignore the
|
Not 100% what I wanted, but definitely close enough to keep me happy :) . Satisfies the security requirement, and I can add my own scripting for the non-secret case. I'd suggest a warning in the last case, when both options are specified. HTH, |
I don't see a reason to have
Warning why? When the user presses enter in the case both are specified its going to run the command and perform some work. So the act of trying to preserve the secret is already lost in that case. |
HTH, |
Is your feature request related to a problem? Please describe.
When people add password variables using the Lagoon CLI, they have to type the password on the command line.
Describe the solution you'd like
The Lagoon CLI will prompt you to enter a value for the variable, and not echo it as you type
Describe alternatives you've considered
None
Additional context
Possible ideas include:
--value-prompt true
--value-prompt secret
option that makes it not echo anything at allPossibly should be a security bug instead of a feature request.
HTH,
The text was updated successfully, but these errors were encountered: