Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): proxy is not configured correctly (#32213)
We were using the `localAddress` of the request handler options, which is the incorrect property. Instead, create an instance of `ProxyAgent`, passing the CA certificate and a function that resolves to the proxy address option from the command line. If no proxy address was passed, it defaults to the environment variables. Tested manually using `mitmproxy` with a custom certificate. While testing this, I noticed that the retry strategy function was incorrect. Closes #32208 ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information