pulumi/cmd
Matt Ellis c91ddf996b Do not prompt for passphrase multiple times
The change does two things:

- Reorders some calls in the CLI to prevent trying to create a secrets
  manager twice (which would end up prompting twice).

- Adds a cache inside the passphrase secrets manager such that when
  decrypting a deployment, we can re-use the one created earlier in
  the update. This is sort of a hack, but is needed because otherwise
  we would fail to decrypt the deployment, meaning that if you had a
  secret value in your deployment *and* you were using local
  passphrase encryption *and* you had not set PULUMI_CONFIG_PASSPHRASE
  you would get an error asking you to do so.

Fixes #2729
2019-05-14 23:35:27 -07:00
..
cancel.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
config.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
config_test.go Tidy up some data structures (#2135) 2018-11-01 08:28:11 -07:00
crypto.go Allow using the passphrase secrets manager with the pulumi service 2019-05-10 17:07:52 -07:00
crypto_http.go Use "passphrase" and "service" instead of "local" and "cloud" 2019-05-10 17:07:52 -07:00
crypto_local.go Allow using the passphrase secrets manager with the pulumi service 2019-05-10 17:07:52 -07:00
destroy.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
errors.go Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
gen_completion.go Reworked gen-bash-completion into a more generic completion command (#1967) 2018-09-24 06:25:16 -07:00
gen_markdown.go Add license headers 2018-05-22 15:02:47 -07:00
history.go Add secrets managers for passphrase and service based encryption 2019-05-10 17:07:52 -07:00
login.go Don't track a stack's configuration file in the backend 2019-05-10 17:07:52 -07:00
logout.go Don't track a stack's configuration file in the backend 2019-05-10 17:07:52 -07:00
logs.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
logs_test.go Add license headers 2018-05-22 15:02:47 -07:00
new.go Allow using the passphrase secrets manager with the pulumi service 2019-05-10 17:07:52 -07:00
plugin.go Remove uses of plugins in the snapshot (#2662) 2019-04-23 09:53:44 -07:00
plugin_install.go Don't track a stack's configuration file in the backend 2019-05-10 17:07:52 -07:00
plugin_ls.go Add --json to pulumi plugin ls 2019-01-22 15:42:29 -08:00
plugin_rm.go Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00
preview.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
pulumi.go Make pulumi query a "debug command" 2019-05-02 18:08:08 -07:00
query.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
refresh.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
stack.go Don't show secret outputs by default on the CLI 2019-05-10 17:07:52 -07:00
stack_export.go Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00
stack_graph.go Refactor display logic out of pkg/backend/filestate 2018-09-05 07:33:18 -07:00
stack_import.go Use existing secrets manager when roundtripping 2019-05-10 17:07:52 -07:00
stack_init.go Allow using the passphrase secrets manager with the pulumi service 2019-05-10 17:07:52 -07:00
stack_ls.go Add --json to pulumi plugin ls 2019-01-22 15:42:29 -08:00
stack_output.go Update --json output for preview in light of secrets 2019-05-10 17:07:52 -07:00
stack_output_test.go Add license headers 2018-05-22 15:02:47 -07:00
stack_rename.go Add pulumi stack rename 2019-03-19 11:04:33 -07:00
stack_rm.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
stack_select.go Remove pulumi archive and archive uploading code 2018-10-26 18:03:58 -07:00
stack_tag.go Add --json to pulumi config get and pulumi config 2019-01-22 10:39:37 -08:00
state.go Use existing secrets manager when roundtripping 2019-05-10 17:07:52 -07:00
state_delete.go Add a note about quoting to state delete doc (#2641) 2019-04-11 16:10:28 -06:00
state_unprotect.go Don't print error prefix when a confirmation prompt is declined 2019-03-26 15:17:18 -07:00
up.go Do not prompt for passphrase multiple times 2019-05-14 23:35:27 -07:00
util.go Allow using the passphrase secrets manager with the pulumi service 2019-05-10 17:07:52 -07:00
util_test.go Add detection of Azure Pipelines (#2705) 2019-05-07 11:49:13 -07:00
version.go Add license headers 2018-05-22 15:02:47 -07:00
whoami.go Display current logged in user 2019-02-01 11:27:49 -08:00