pulumi/pkg/backend
bors[bot] c48fd2045c
Merge #11767 #11774
11767: Pull NewPromptingPassphraseSecretsManager out of filestate r=Frassle a=Frassle

Baby steps to try and clean up the secret management code to enable both project secrets and secret plugins. Step 1 is trying to decouple the secret providers and backends. Step 1 of that is the simple case of just not having any passphrase code in the filestate module.

I also renamed "filestate.NewPassphraseSecretsManager" to "passphrase.NewPromptingPassphraseSecretsManager" to make it clear that this will invoke prompts (matches the naming style of the other methods in passphrase).

11774: Pull NewServiceSecretsManager out of httpstate r=Frassle a=Frassle

A sister PR to https://github.com/pulumi/pulumi/pull/11767. This pulls as much of NewServiceSecretsManager out of httpstate and to the secrets/service module.

What's left in httpstate is the DefaultSecretManager method pulling off the client and stack identifier to pass to NewServiceSecretsManager. That couldn't be done in secrets/service because that would cause a dependency chain loop (secrets/service would depend on the httpstate.Stack, but that would depend on secrets/service).

Arguably the `client.Client` ought to just be a string URL and the secret manager should make it's own client (like it does in NewServiceSecretsManagerFromState). But trying to keep each individual change here small.

Co-authored-by: Fraser Waters <fraser@pulumi.com>
2023-01-09 08:10:03 +00:00
..
display sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
filestate Pull NewPromptingPassphraseSecretsManager out of filestate 2023-01-04 15:52:30 +00:00
httpstate Merge #11767 #11774 2023-01-09 08:10:03 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go cli/update: Move experimental option to bottom 2023-01-06 14:12:41 -08:00
backend.go Qualify name 2022-11-29 14:07:20 -08:00
backend_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Add a link to docs for the 409 Conflict error message (#3207) 2019-09-10 13:25:08 -07:00
mock.go Move default secret manager to stack (#10423) 2022-08-18 15:31:34 +01:00
policypack.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
query.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
snapshot.go Move over some env vars to the new lib 2022-12-15 15:46:39 +01:00
snapshot_test.go Move over some env vars to the new lib 2022-12-15 15:46:39 +01:00
stack.go Move default secret manager to stack (#10423) 2022-08-18 15:31:34 +01:00
updates.go Send update metadata about update plans 2022-10-12 22:55:59 +01:00
watch.go fix: Allow watch on macOS on Apple Silicon (#10605) 2022-09-02 10:38:39 -07:00