summaryrefslogtreecommitdiff
path: root/lib/chef/secret_fetcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/secret_fetcher.rb')
-rw-r--r--lib/chef/secret_fetcher.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/secret_fetcher.rb b/lib/chef/secret_fetcher.rb
index e8e4602bb2..af3e1d5cbb 100644
--- a/lib/chef/secret_fetcher.rb
+++ b/lib/chef/secret_fetcher.rb
@@ -21,7 +21,7 @@ require_relative "exceptions"
class Chef
class SecretFetcher
- SECRET_FETCHERS = %i{example aws_secrets_manager azure_key_vault hashi_vault}.freeze
+ SECRET_FETCHERS = %i{example aws_secrets_manager azure_key_vault hashi_vault akeyless_vault}.freeze
# Returns a configured and validated instance
# of a [Chef::SecretFetcher::Base] for the given
@@ -45,10 +45,13 @@ class Chef
when :hashi_vault
require_relative "secret_fetcher/hashi_vault"
Chef::SecretFetcher::HashiVault.new(config, run_context)
+ when :akeyless_vault
+ require_relative "secret_fetcher/akeyless_vault"
+ Chef::SecretFetcher::AKeylessVault.new(config, run_context)
when nil, ""
raise Chef::Exceptions::Secret::MissingFetcher.new(SECRET_FETCHERS)
else
- raise Chef::Exceptions::Secret::InvalidFetcherService.new("Unsupported secret service: #{service}", SECRET_FETCHERS)
+ raise Chef::Exceptions::Secret::InvalidFetcherService.new("Unsupported secret service: '#{service}'", SECRET_FETCHERS)
end
fetcher.validate!
fetcher