pulumi/pkg/backend/httpstate
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
..
client sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
testdata Reduce memory use for PULUMI_OPTIMIZED_CHECKPOINT_PATCH 2022-12-15 11:23:06 -05:00
backend.go golangci-lint: Opt into nolintlint 2023-01-06 10:17:55 -08:00
backend_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
console.go Add support for a PULUMI_CONSOLE_DOMAIN env var (#4410) 2020-04-17 11:50:00 -07:00
console_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
diffs.go Reduce memory use for PULUMI_OPTIMIZED_CHECKPOINT_PATCH 2022-12-15 11:23:06 -05:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
policypack.go Respond to SIGINT during plugin install (#9793) 2022-06-09 14:57:56 -07:00
snapshot.go Reduce memory use for PULUMI_OPTIMIZED_CHECKPOINT_PATCH 2022-12-15 11:23:06 -05:00
snapshot_test.go Lint 2022-12-15 12:14:51 -05:00
stack.go Pull NewServiceSecretsManager out of httpstate 2023-01-04 23:04:30 +00:00
state.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00
token_source.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
token_source_test.go Disable token_source_test on windows (#10557) 2022-09-01 01:30:52 +02:00