aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
3.05k stars 574 forks source link

Ipv6 address treated as hostnamem getaddrinfo ENOTFOUND [fd00:ec2::23] #6495

Open Defman opened 1 week ago

Defman commented 1 week ago

Checkboxes for prior research

Describe the bug

When using podidentity with eks the ip [fd00:ec2::23] is treated as a hostname.

Regression Issue

SDK version number

@aws-sdk/client-s3@3.654.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

22.9.0

Reproduction Steps

  1. EKS Cluster running ipv6
  2. Use podidentity
  3. Use the s3-client lib to access s3 authenticated via podidentity

Observed Behavior

Tries to resolve [fd00:ec2::23] via dns

Expected Behavior

Should not try to resolve the ip via dns.

Possible Solution

No response

Additional Information/Context

EKS ipv6

Defman commented 1 week ago

Fixed in https://github.com/smithy-lang/smithy-typescript/pull/1408

Defman commented 1 week ago

Actually I’ll leave this issue open until smithy is bumped.

kuhe commented 1 week ago

Workaround until the minimum version is bumped is to update your lockfile or make a fresh install.