[GH-ISSUE #161] Audit: Avoid http.DefaultClient in upload operations #45

Closed
opened 2026-02-26 21:32:58 +03:00 by kerem · 1 comment
Owner

Originally created by @rudrankriyam on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/161

Description

internal/asc/upload.go:58 uses http.DefaultClient for upload operations:

uploadOpts := UploadOptions{
    Client: http.DefaultClient,  // SHARES CONNECTION POOL
    ...
}

Impact

  • http.DefaultClient shares its Transport with all users of the package
  • Can cause connection pool exhaustion if used concurrently
  • Unexpected timeout/behavior changes affecting other code
  • Upload operations may inherit inappropriate default timeouts

Location

internal/asc/upload.go:58

Fix

Create a dedicated http.Client with appropriate timeouts, similar to how NewClient does it in client_core.go:310.

Severity

Critical

Originally created by @rudrankriyam on GitHub (Jan 25, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/161 ## Description `internal/asc/upload.go:58` uses `http.DefaultClient` for upload operations: ```go uploadOpts := UploadOptions{ Client: http.DefaultClient, // SHARES CONNECTION POOL ... } ``` ## Impact - `http.DefaultClient` shares its Transport with all users of the package - Can cause connection pool exhaustion if used concurrently - Unexpected timeout/behavior changes affecting other code - Upload operations may inherit inappropriate default timeouts ## Location `internal/asc/upload.go:58` ## Fix Create a dedicated `http.Client` with appropriate timeouts, similar to how `NewClient` does it in `client_core.go:310`. ## Severity Critical
kerem closed this issue 2026-02-26 21:32:58 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Jan 25, 2026):

Closed via #170.

<!-- gh-comment-id:3797232683 --> @rudrankriyam commented on GitHub (Jan 25, 2026): Closed via #170.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#45
No description provided.