mirror of https://github.com/pulumi/pulumi.git
c48fd2045c
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> |
||
---|---|---|
.. | ||
client | ||
testdata | ||
backend.go | ||
backend_test.go | ||
console.go | ||
console_test.go | ||
diffs.go | ||
doc.go | ||
policypack.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
state.go | ||
token_source.go | ||
token_source_test.go |