Session-minted upload key: nobody types an app-specific password (v1.64.18.0)#48
Merged
Conversation
…kes the session Apple's binary-upload tool (iTMSTransporter behind deliver/pilot) accepts only an ASC API key or app-specific password; the spaceauth web session is not valid there (live error -22938 + fastlane auth docs). Corrected the contract: the session's job on the upload leg is to MINT the key via the iris endpoints the ASC web UI uses (POST /iris/v1/apiKeys, privateKey = base64-of-PEM downloadable once, issuer = olympus publicProviderId). Key stored at ~/.appstoreconnect/private_keys + ~/.gstack/apple/api-key.json; never expires, so repeat releases skip sign-in. Escalation ladder now: mint → re-sign-in + re-mint → ASP self-service only on a team-permissions refusal. Proven live end to end (mint + JWT lists team apps). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Apple's binary-upload tool (iTMSTransporter behind
deliver/pilot) never accepts the spaceauth web session — it takes only an ASC API key or an app-specific password (live error-22938, confirmed by fastlane's auth docs). The previous contract claimed the session alone covered uploads; that claim was wrong for this one leg.The fix is broad, not a patch: the web session mints the API key itself, through the same iris endpoints the App Store Connect web UI uses. Proven live end to end on a real account:
POST /iris/v1/apiKeys(JSON:API,APP_MANAGER,PUBLIC_API) → 201GET /iris/v1/apiKeys/<id>?fields[apiKeys]=privateKey→ base64-of-PEM, decode once (one-time download)provider.publicProviderIdfromGET /olympus/v1/sessionStored at
~/.appstoreconnect/private_keys/AuthKey_<id>.p8+ fastlane api-key JSON~/.gstack/apple/api-key.json(0600). The key never expires → repeat releases skip sign-in entirely. New escalation ladder: mint → re-sign-in + re-mint → self-service ASP only on a team-permissions refusal (non-admin member).Testing
bun run test:gstack2green; parity 4,359 checks pass, all 3 Apple pins survivebun test(full free gate) exit 0api.appstoreconnect.apple.com🤖 Generated with Claude Code
Summary by cubic
Uploads now use an App Store Connect API key minted from your web session. No app-specific password prompts, and repeat releases skip sign-in.
irisafter the firstfastlane spaceauth, then store it at~/.appstoreconnect/private_keys/AuthKey_<id>.p8and~/.gstack/apple/api-key.json(0600). The key does not expire.deliver/pilotwithapi_key_path; the session remains only forproduceand re-minting if the key is revoked. Escalation: mint → re-sign-in + re-mint → app-specific password only on team-permissions refusal.skills/ship/references/APPLE-RELEASE.md; bumped version to1.64.18.0.Written for commit a0caef5. Summary will update on new commits.