pulumi/pkg/cmd/pulumi
bors[bot] e84522340c
Merge #12038
12038: Move the project file handling for secret config to one place r=Frassle a=Frassle



<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

A continuing clean up of secrets.

This means the secret providers just work in terms of workspace.ProjectStack, mutate as they wish and let the higher level work out if it should save the file or not. Rather than having each secret provider have to deal with loading and saving the stack config files all that that logic is now moved out to `getStackSecretsManager` and `createSecretsManager`.

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my feature works - Should be covered by existing tests. No behavioral changes intended. 
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change - Not user facing
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Fraser Waters <fraser@pulumi.com>
2023-02-07 21:17:31 +00:00
..
convert_testdata Refactor convert command to add entrypoint for pulumi convert debugging 2022-10-01 15:40:17 -07:00
pcl_convert_testdata Support PCL as a convert input (and output) 2022-11-11 10:45:40 +00:00
testdata/fuzz/FuzzPowershellStackOutputWriter cli/stack-ouput/test: Fix Powershell test failures 2023-01-30 07:58:47 -08:00
about.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
about_test.go Move about information to language plugins (#10392) 2022-08-15 14:55:04 +01:00
cancel.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
config.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
config_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
console.go [cli] fix `pulumi console` command (#10509) 2022-08-26 15:09:15 -07:00
convert-trace.go Add a convert-trace command. (#7319) 2021-06-17 14:46:05 -07:00
convert.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
convert_test.go Example of usage and test injection 2022-12-14 15:41:42 +01:00
crypto.go Move the project file handling for secret config to one place 2023-02-01 17:03:38 +00:00
destroy.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
env.go Add `pulumi env` commmand 2022-12-14 15:41:42 +01:00
errors.go Be more consistent about using ` for quoting commands (#10434) 2022-08-18 15:31:22 +01:00
gen_completion.go Expose `gen-completion` command when running `pulumi --help` (#10218) 2022-07-22 09:36:16 -07:00
gen_markdown.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
import.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
login.go Add `--insecure` flag to `pulumi login` 2023-02-03 16:09:37 -08:00
logout.go Add `--insecure` flag to `pulumi login` 2023-02-03 16:09:37 -08:00
logs.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
logs_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
main.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
main_1.17_test.go [pkg] Enable main_test to compile on go 1.17 and go 1.18 (#9771) 2022-06-09 16:47:49 -07:00
main_1.18_test.go [pkg] Enable main_test to compile on go 1.17 and go 1.18 (#9771) 2022-06-09 16:47:49 -07:00
main_test.go [pkg] Enable main_test to compile on go 1.17 and go 1.18 (#9771) 2022-06-09 16:47:49 -07:00
new.go cli/new: Ignore VCS directories 2023-01-09 09:02:03 -08:00
new_acceptance_test.go Rename "Smoke" test to "Acceptance" tests 2023-01-30 15:38:37 -05:00
new_test.go Merge #11804 2023-01-09 17:43:40 +00:00
org.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
package.go Fix executable checks for windows 2022-12-20 09:08:42 +00:00
package_extract_schema.go Add gen-sdk sub-command 2022-09-14 17:07:05 +02:00
package_gen_sdk.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
plugin.go Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
plugin_install.go Fix executable checks for windows 2022-12-20 09:08:42 +00:00
plugin_ls.go Split PluginInfo in Info and Spec (#10501) 2022-08-26 15:51:14 +01:00
plugin_rm.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
policy.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
policy_disable.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
policy_enable.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
policy_group_ls.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
policy_ls.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
policy_new.go cli: Clean up previous yamlutil package, update new commands 2022-12-10 12:29:33 -08:00
policy_new_acceptance_test.go Rename "Smoke" test to "Acceptance" tests 2023-01-30 15:38:37 -05:00
policy_new_test.go Rename "Smoke" test to "Acceptance" tests 2023-01-30 15:38:37 -05:00
policy_publish.go Add `--insecure` flag to `pulumi login` 2023-02-03 16:09:37 -08:00
policy_rm.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
policy_validate.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
preview.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
pulumi.go Add `--insecure` flag to `pulumi login` 2023-02-03 16:09:37 -08:00
pulumi_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
query.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
refresh.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
replay_events.go [display] Factor out the low-level progress renderer. 2022-10-31 07:59:14 -07:00
schema.go [codegen/schema] Add a schema checker (#7865) 2021-08-30 19:29:24 -07:00
schema_check.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
stack.go Merge #12005 2023-01-27 19:21:08 +00:00
stack_change_secrets_provider.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_export.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_graph.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
stack_history.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_import.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_init.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_ls.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
stack_ls_test.go Qualify name 2022-11-29 14:07:20 -08:00
stack_output.go Merge #12005 2023-01-27 19:21:08 +00:00
stack_output_fuzz_test.go cli/stack-ouput/test: Fix Powershell test failures 2023-01-30 07:58:47 -08:00
stack_output_test.go Merge #12005 2023-01-27 19:21:08 +00:00
stack_rename.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_rm.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_select.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_tag.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_unselect.go include error in formatted message and explicitly check for an empty stack 2022-03-14 11:32:33 +01:00
state.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
state_delete.go Add `pulumi state delete --target-dependents` 2022-10-27 11:23:56 -07:00
state_rename.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
state_unprotect.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
terminal.go crypto/ssh/terminal is deprecated 2023-01-12 09:07:34 -08:00
terminal_test.go Fix negative page size panic (#10475) 2022-08-23 16:45:47 -04:00
up.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
up_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
util.go Merge #12038 2023-02-07 21:17:31 +00:00
util_remote.go [auto] Add SkipInstallDependencies option for remote workspaces 2022-12-19 10:27:01 -05:00
util_remote_test.go [cli] Experimental support for remote operations 2022-10-27 16:15:59 -07:00
util_test.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
version.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
view-trace.go golangci-lint: Opt into nolintlint 2023-01-06 10:17:55 -08:00
watch.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
whoami.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00