[GH-ISSUE #167] Audit: Consider shorter JWT token lifetime #49

Closed
opened 2026-02-26 21:33:00 +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/167

Description

internal/asc/client_core.go:31 sets JWT token lifetime to 20 minutes:

tokenLifetime = 20 * time.Minute

Impact

While 20 minutes is reasonable, App Store Connect tokens should ideally be shorter-lived (5-10 minutes) for better security, especially if tokens are cached.

Location

internal/asc/client_core.go:31

Consideration

Consider reducing to 10 minutes or making it configurable via environment variable.

Severity

Low (security hardening suggestion)

Originally created by @rudrankriyam on GitHub (Jan 25, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/167 ## Description `internal/asc/client_core.go:31` sets JWT token lifetime to 20 minutes: ```go tokenLifetime = 20 * time.Minute ``` ## Impact While 20 minutes is reasonable, App Store Connect tokens should ideally be shorter-lived (5-10 minutes) for better security, especially if tokens are cached. ## Location `internal/asc/client_core.go:31` ## Consideration Consider reducing to 10 minutes or making it configurable via environment variable. ## Severity Low (security hardening suggestion)
kerem closed this issue 2026-02-26 21:33:00 +03:00
Author
Owner

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

Closed via #170.

<!-- gh-comment-id:3797232992 --> @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#49
No description provided.