mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #272] Auth: Warn when credentials are mixed from multiple sources #85
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/272
Problem
The current credential resolution logic in
cmd/shared.gocan silently mix credentials from different sources. For example, if a user has a Key ID stored in the keychain but provides an Issuer ID via environment variable, the CLI will combine them without warning. This can create invalid credential combinations that fail at API call time with confusing errors.Current behavior:
This silent merging violates the principle of least surprise and makes debugging auth issues difficult.
Affected Code
cmd/shared.go:203-220- The credential resolution and merging logiccmd/shared.go:148-200- ThegetASCClientfunction that orchestrates credential loadingProposed Solution
--strict-authorASC_STRICT_AUTH=1) that fails instead of warns when mixing occursImplementation approach:
--helpoutputAcceptance Criteria
--strict-authflag orASC_STRICT_AUTHenv var to fail on mixed credentials@rudrankriyam commented on GitHub (Jan 28, 2026):
Closing per request. Reopen if any auth issues remain.