pulumi/pkg/secrets
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
..
b64 Add 'secret' to config 2022-10-24 09:22:24 +01:00
cloud Add tests for awskms secret manager 2022-12-02 13:38:28 +00:00
passphrase Pull NewPromptingPassphraseSecretsManager out of filestate 2023-01-04 15:52:30 +00:00
service Pull NewServiceSecretsManager out of httpstate 2023-01-04 23:04:30 +00:00
manager.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00