From d03c982d40ba93e642138cb66faff4a1fad74b72 Mon Sep 17 00:00:00 2001 From: Serhii Zhuha <5541036+scrill@users.noreply.github.com> Date: Thu, 17 Oct 2024 08:36:28 +0300 Subject: [PATCH] Fix: IMDSv2 token cannot be retrieved through a proxy --- lib/facter/util/resolvers/aws_token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/util/resolvers/aws_token.rb b/lib/facter/util/resolvers/aws_token.rb index c7081655ae..ce34eb5c42 100644 --- a/lib/facter/util/resolvers/aws_token.rb +++ b/lib/facter/util/resolvers/aws_token.rb @@ -23,7 +23,7 @@ def get(lifetime = 100) 'X-aws-ec2-metadata-token-ttl-seconds' => lifetime.to_s } - @token = Facter::Util::Resolvers::Http.put_request(AWS_API_TOKEN_URL, headers) + @token = Facter::Util::Resolvers::Http.put_request(AWS_API_TOKEN_URL, headers, {}, false) end def reset