Skip to content

Commit

Permalink
Fix: IMDSv2 token cannot be retrieved through a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
scrill committed Oct 17, 2024
1 parent eca23ba commit d03c982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facter/util/resolvers/aws_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d03c982

Please sign in to comment.