mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #786] [MERGED] fix keychain auth when original .p8 file is removed #786
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#786
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?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/786
Author: @rudrankriyam
Created: 2/26/2026
Status: ✅ Merged
Merged: 2/26/2026
Merged by: @rudrankriyam
Base:
main← Head:fix/keychain-review-details-create-auth📝 Commits (4)
13abd9ffix keychain auth when original .p8 file is deleteda0ffcf4refactor keychain auth to avoid runtime temp key filesa6c15c1fix auth diagnostics for keychain PEM-only credentials38aa534remove unused exported PEM http-client constructor📊 Changes
11 files changed (+459 additions, -51 deletions)
View changed files
📝
internal/asc/client_core.go(+20 -2)➕
internal/asc/client_core_auth_test.go(+55 -0)📝
internal/auth/doctor.go(+15 -0)📝
internal/auth/doctor_test.go(+39 -0)📝
internal/auth/keychain.go(+50 -14)📝
internal/auth/keychain_test.go(+107 -0)📝
internal/cli/auth/auth.go(+29 -11)📝
internal/cli/auth/auth_test.go(+28 -0)📝
internal/cli/shared/shared.go(+23 -15)📝
internal/cli/shared/shared_test.go(+92 -9)📝
internal/config/config.go(+1 -0)📄 Description
Summary
private_key_pathmetadata for compatibilityasc.NewClientFromPEM(...), so runtime auth no longer materializes temporary key files from keychain dataauth status --validateandauth doctornow validate keychain PEM credentials without requiring the original key file pathprivate_key_pathwhen the source file still exists, and add regression tests for PEM persistence, legacy backfill, deleted-file resolution, and shared auth resolution when only PEM is presentTest plan
go test ./internal/cli/auth ./internal/auth ./internal/cli/shared ./internal/ascmake formatmake lintASC_BYPASS_KEYCHAIN=1 make test.p8localizations listsucceeds (auth works)review details-createreaches API validation (no private key path error)auth status --validatesucceeds from keychain PEM with missing original file/tmp/asc-keychain-key-*.p8files are created.p8🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.