Skip to content

Conversation

@pat-lego
Copy link

S3 bucket should allow for Proxy support

@pat-lego pat-lego marked this pull request as draft August 27, 2025 21:01
pru55e11 added a commit that referenced this pull request Aug 27, 2025
This fixes the proxy bypass issue that occurred after the migration from AWS SDK v2 to v3 in March 2023.

PROBLEM:
- AWS SDK v3 requires different proxy configuration than v2
- Adobe I/O CLI S3 uploads were bypassing corporate proxies
- ECONNRESET errors in corporate environments

SOLUTION:
- Add NodeHttpHandler with ProxyAgent for AWS SDK v3 compatibility
- Support multiple proxy environment variables (https_proxy, HTTPS_PROXY, ALL_PROXY, http_proxy)
- Maintain CommonJS compatibility (fixes ES6 import issues from PR #224)
- Priority: HTTPS_PROXY > ALL_PROXY > HTTP_PROXY

DEPENDENCIES:
- @smithy/node-http-handler: AWS SDK v3 HTTP handler
- proxy-agent: Universal proxy support

Inspired-by: PR #224 by pat-lego
Fixes: proxy bypass for Adobe I/O CLI S3 operations
pru55e11 added a commit that referenced this pull request Aug 27, 2025
This fixes the proxy bypass issue that occurred after the migration from AWS SDK v2 to v3 in March 2023.

PROBLEM:
- AWS SDK v3 requires different proxy configuration than v2
- Adobe I/O CLI S3 uploads were bypassing corporate proxies
- ECONNRESET errors in corporate environments

SOLUTION:
- Add NodeHttpHandler with ProxyAgent for AWS SDK v3 compatibility
- Support standard proxy environment variables (https_proxy, HTTPS_PROXY, http_proxy, HTTP_PROXY)
- Maintain CommonJS compatibility (fixes ES6 import issues from PR #224)
- Priority: HTTPS_PROXY > HTTP_PROXY (HTTPS takes precedence for S3)

DEPENDENCIES:
- @smithy/node-http-handler: AWS SDK v3 HTTP handler
- proxy-agent: Universal proxy support

Inspired-by: PR #224 by pat-lego
Fixes: proxy bypass for Adobe I/O CLI S3 operations
pru55e11 added a commit that referenced this pull request Aug 27, 2025
This fixes the proxy bypass issue that occurred after the migration from AWS SDK v2 to v3 in March 2023.

PROBLEM:
- AWS SDK v3 requires different proxy configuration than v2
- Adobe I/O CLI S3 uploads were bypassing corporate proxies
- ECONNRESET errors in corporate environments

SOLUTION:
- Add NodeHttpHandler with ProxyAgent for AWS SDK v3 compatibility
- Support standard proxy environment variables (https_proxy, HTTPS_PROXY, http_proxy, HTTP_PROXY)
- Maintain CommonJS compatibility (fixes ES6 import issues from PR #224)
- Priority: HTTPS_PROXY > HTTP_PROXY (HTTPS takes precedence for S3)
- Only configure requestHandler when proxy is actually set

DEPENDENCIES:
- @smithy/node-http-handler: AWS SDK v3 HTTP handler
- proxy-agent: Universal proxy support

TESTS:
- Comprehensive proxy configuration tests for all environment variables
- Proxy priority testing (HTTPS takes precedence)
- No-proxy scenario testing

Inspired-by: PR #224 by pat-lego
Fixes: proxy bypass for Adobe I/O CLI S3 operations
@pru55e11 pru55e11 mentioned this pull request Aug 27, 2025
10 tasks
pru55e11 added a commit that referenced this pull request Aug 27, 2025
This fixes the proxy bypass issue that occurred after the migration from AWS SDK v2 to v3 in March 2023.

PROBLEM:
- AWS SDK v3 requires different proxy configuration than v2
- Adobe I/O CLI S3 uploads were bypassing corporate proxies
- ECONNRESET errors in corporate environments

SOLUTION:
- Add NodeHttpHandler with ProxyAgent for AWS SDK v3 compatibility
- Support standard proxy environment variables (https_proxy, HTTPS_PROXY, http_proxy, HTTP_PROXY)
- Maintain CommonJS compatibility (fixes ES6 import issues from PR #224)
- Priority: HTTPS_PROXY > HTTP_PROXY (HTTPS takes precedence for S3)
- Only configure requestHandler when proxy is actually set

DEPENDENCIES:
- @smithy/node-http-handler: AWS SDK v3 HTTP handler
- proxy-agent: Universal proxy support

TESTS:
- Comprehensive proxy configuration tests for all environment variables
- Proxy priority testing (HTTPS takes precedence)
- No-proxy scenario testing
- All ESLint rules followed

Inspired-by: PR #224 by pat-lego
Fixes: proxy bypass for Adobe I/O CLI S3 operations
@pru55e11
Copy link
Contributor

Released via PR #225 - thanks so much for the submission!

@pru55e11 pru55e11 closed this Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants