summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorneha-p6 <neha.pansare@progress.com>2022-06-07 14:26:46 +0530
committerGitHub <noreply@github.com>2022-06-07 14:26:46 +0530
commite6486a5fdcdbbe8978b5d5bd09d5c7d0dcbee1eb (patch)
treebf8c22daa0132f8c607b4a80c336939c75dd21c2 /lib/chef
parent37727aa25d8ea3774f4f8f071a3cf213b6204b08 (diff)
downloadchef-e6486a5fdcdbbe8978b5d5bd09d5c7d0dcbee1eb.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 (#12956)
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
Diffstat (limited to 'lib/chef')
-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