Skip to content

[Feat. Req] Smartly lookup secret from multiple providers #12

Description

@oliverswitzer

Perhaps this is already supported by Hush and I missed this in the docs, but it would be really great if there was a way to specify multiple providers to use to look up a value. Ie:

config :my_app,
  :some_config, {:hush, [SystemEnvironment, GcpSecretManager], "SOME_CONFIG"}

Hush would then smartly try to find the value from both providers and only explode if it couldn't find a value in either.

This feat. would be particularly useful for when we want to set secrets for tests via Github workflow secrets in CI and GcpSecretsManager in prod or staging.

Let me know what you think!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions