-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessp2This is a standard priority issueThis is a standard priority issue
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
The SDK gets credentials via SSO directly (ignoring proxy configuration) provided in the fromIni()
method.
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
node version: v22.9.0
Reproduction Steps
- Precondition: the SSO set-up has been done (creating user,
aws sso login
etc). - Start a proxy on port 8080. I'm using mitmproxy.
- Install the CA certificate.
- Run the following code:
const agent = new ProxyAgent({
ca: fs.readFileSync('/path/to/pem', { encoding: 'utf-8' }),
getProxyForUrl: () => Promise.resolve('http://localhost:8080'),
});
const provider = fromIni({
profile: 'test',
ignoreCache: true,
clientConfig: {
requestHandler: {
connectionTimeout: 30000,
requestTimeout: 10000,
httpsAgent: agent,
httpAgent: agent,
},
},
});
console.log(await provider());
- Watch the proxy logs.
Observed Behavior
The TypeScript program will print the AWS credentials, but the proxy won't show any activity. To further confirm, if I shut down the proxy, the credentials are still retrieved.
Expected Behavior
Proxy show activity when up and request fail when proxy is down.
Possible Solution
No response
Additional Information/Context
Related issue: aws/aws-cdk#32208
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessp2This is a standard priority issueThis is a standard priority issue