summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeha Pansare <neha.pansare@progress.com>2022-06-01 16:40:19 +0530
committerNeha Pansare <neha.pansare@progress.com>2022-06-01 16:59:10 +0530
commitb8b0849d137b78c500bb3b5d7ee00b83796b19a6 (patch)
tree5cd7b9fe4be0c958a1b26d2565f59fa850fdab1e
parent91bfc9f3cb1da01b0844bd4d926570b00859b1f8 (diff)
downloadchef-b8b0849d137b78c500bb3b5d7ee00b83796b19a6.tar.gz
Fix error 'error validating X-Vault-AWS-IAM-Server-ID header: missing header X-Vault-AWS-IAM-Server-ID' in Hashi Vault secret manager for AWS IAM auth method
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
-rw-r--r--lib/chef/secret_fetcher/hashi_vault.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/secret_fetcher/hashi_vault.rb b/lib/chef/secret_fetcher/hashi_vault.rb
index 170fcba4b6..1b18c6345f 100644
--- a/lib/chef/secret_fetcher/hashi_vault.rb
+++ b/lib/chef/secret_fetcher/hashi_vault.rb
@@ -112,7 +112,7 @@ class Chef
raise Chef::Exceptions::Secret::ConfigurationInvalid.new("You must provide the authenticating Vault role name in the configuration as :role_name")
end
- Vault.auth.aws_iam(config[:role_name], Aws::InstanceProfileCredentials.new)
+ Vault.auth.aws_iam(config[:role_name], Aws::InstanceProfileCredentials.new, Vault.address)
else
raise Chef::Exceptions::Secret::ConfigurationInvalid.new("Invalid :auth_method provided. You gave #{config[:auth_method]}, expected one of :#{SUPPORTED_AUTH_TYPES.join(", :")} ")
end