diff options
author | Marc A. Paradise <marc.paradise@gmail.com> | 2021-07-15 17:19:25 -0400 |
---|---|---|
committer | Marc A. Paradise <marc.paradise@gmail.com> | 2021-07-15 17:43:28 -0400 |
commit | 0d04189350f483edfbc725d9d77aee9946e4f72c (patch) | |
tree | 96b659936901123ce2f5115fd6bf6552cc428c13 /lib/chef/exceptions.rb | |
parent | 10b6ff915c6fe24ad0708f0df8fa7514d9bca933 (diff) | |
download | chef-0d04189350f483edfbc725d9d77aee9946e4f72c.tar.gz |
Add experimental fetcher for Azure Key Vault
Usage in a recipe looks like this:
value = secret(name: "test1", version: "v1",
service: :azure_key_vault,
config: { vault: "myvault" } )
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r-- | lib/chef/exceptions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb index 6a90b0cc52..dcb7146510 100644 --- a/lib/chef/exceptions.rb +++ b/lib/chef/exceptions.rb @@ -295,7 +295,7 @@ class Chef class ConfigurationInvalid < RuntimeError; end class FetchFailed < RuntimeError; end class MissingSecretName < RuntimeError; end - + class InvalidSecretName < RuntimeError; end class InvalidFetcherService < RuntimeError def initialize(given, fetcher_service_names) super("#{given} is not a supported secrets service. Supported services are: :#{fetcher_service_names.join(" :")}") @@ -308,6 +308,7 @@ class Chef end end + class MissingVaultName < RuntimeError; end end # Exception class for collecting multiple failures. Used when running |