aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

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

Open Defman opened this issue 1 year ago • 3 comments

Checkboxes for prior research

Describe the bug

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

Regression Issue

  • [ ] Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

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 avatar Sep 19 '24 16:09 Defman

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

Defman avatar Sep 20 '24 17:09 Defman

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

Defman avatar Sep 20 '24 18:09 Defman

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

kuhe avatar Sep 20 '24 20:09 kuhe

The minimum node-http-handler dependency version in the current version of the SDK is high enough to guarantee including the fix, so I'm closing this now.

kuhe avatar Dec 06 '24 19:12 kuhe

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

github-actions[bot] avatar Dec 21 '24 00:12 github-actions[bot]