-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Consider changing config verbs #552
Comments
How about just |
pulumi config set --secret
this makes sense to me, as much as it's not my favorite line to type.
…On Mon, Nov 13, 2017 at 8:57 AM, Chris Smith ***@***.***> wrote:
How about just pulumi config set and pulumi config set-secret or pulumi
config set --secret?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#552 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AH_5woR29x-Ih6zfxRKa0EsC9-6AUTmHks5s2HUEgaJpZM4QcFMX>
.
|
For what it’s worth, the reason we had secret and text be siblings at the top level was we were afraid that having —secret would mean people would do the wrong thing by default for secrets. Putting them both at top level was trying to make the secrets system a little more discoverable. |
@ellismg I hear that - but in practice I don't feel like this difference is likely to change what users do (they'll still just learn to use I think we should lean on dumber solutions. If we feel it's critical to encrypt as a default - we should make encrypting all config vars the default. If it's not - then |
I'm ok with that. It was good to try the experiment, it's just a little cumbersome to use in the wild. |
Move from two top level commands `text` and `secret` to a single `set` command to set a value. To store a value encrypted, use `--secret` as an argument to `set`. Renames `ls` to `get`. The command is otherwise unchanged, so `get` with no additional arguments will print all the configuration values for a stack (in a table format), while `get <key-name>` will print the value for that key by itself (useful for scripting). Fixes #552
A handful of UX improvments for config: - `pulumi config ls` has been removed. Now, `pulumi config` with no arguments prints the table of configuration values for a stack and a new command `pulumi config get <key>` prints the value for a single configuration key (useful for scripting). - `pulumi config text` and `pulumi config secret` have been merged into a single command `pulumi config set`. The flag `--secret` can be used to encrypt the value we store (like `pulumi config secret` used to do). - To make it obvious that setting a value with `pulumi config set` is in plan text, we now echo a message back to the user saying we added the configuration value in plaintext. Fixes #552
A handful of UX improvments for config: - `pulumi config ls` has been removed. Now, `pulumi config` with no arguments prints the table of configuration values for a stack and a new command `pulumi config get <key>` prints the value for a single configuration key (useful for scripting). - `pulumi config text` and `pulumi config secret` have been merged into a single command `pulumi config set`. The flag `--secret` can be used to encrypt the value we store (like `pulumi config secret` used to do). - To make it obvious that setting a value with `pulumi config set` is in plan text, we now echo a message back to the user saying we added the configuration value in plaintext. Fixes #552
A handful of UX improvments for config: - `pulumi config ls` has been removed. Now, `pulumi config` with no arguments prints the table of configuration values for a stack and a new command `pulumi config get <key>` prints the value for a single configuration key (useful for scripting). - `pulumi config text` and `pulumi config secret` have been merged into a single command `pulumi config set`. The flag `--secret` can be used to encrypt the value we store (like `pulumi config secret` used to do). - To make it obvious that setting a value with `pulumi config set` is in plan text, we now echo a message back to the user saying we added the configuration value in plaintext. Fixes #552
We should consider some changes to our config commands.
First, we currently have
text
andsecret
; these are not verbs, so a little weird to use. We could considerset-text
andset-secret
.Second, the asymmetry with having distinct setters, but a single getter, and furthermore having that getter named
ls
(which is short for "list") is a bit strange. We could haveget-text
andget-secret
.The text was updated successfully, but these errors were encountered: