Class: Chef::SecretFetcher::AKeylessVault
- Inherits:
-
HashiVault
- Object
- Base
- HashiVault
- Chef::SecretFetcher::AKeylessVault
- Defined in:
- lib/chef/secret_fetcher/akeyless_vault.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from HashiVault
Methods inherited from Base
#do_fetch, #fetch, #initialize
Constructor Details
This class inherits a constructor from Chef::SecretFetcher::Base
Instance Method Details
#validate! ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/chef/secret_fetcher/akeyless_vault.rb', line 41 def validate! if config[:access_key].nil? raise Chef::Exceptions::Secret::ConfigurationInvalid.new("You must provide the secret access key in the configuration as :secret_access_key") end if config[:access_id].nil? raise Chef::Exceptions::Secret::ConfigurationInvalid.new("You must provide the access key id in the configuration as :access_key_id") end config[:vault_addr] ||= AKEYLESS_VAULT_PROXY_ADDR config[:auth_method] = :token config[:token] = "#{config[:access_id]}..#{config[:access_key]}" super end |