Conversation
…returns 404 Apple stopped serving olympus/v1/app/config on 2026-09-10. Client uses it to obtain the X-Apple-Widget-Key that every subsequent authentication request needs, and fetchServiceKey had no fallback, so the 404 surfaced to the user before any credentials were sent. The App Store Connect endpoint is still tried first, so a restored endpoint needs no change here. When it fails, the key is read from the widgetKey value embedded in the Developer portal sign-in page. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
5 tasks
Contributor
|
Hi @sakiyamaK thanks for the effort in this. I ended up in a slightly different direction in #6 which better matches what is done on Fastlane so we're all on the same page on how we're trying to handle this. |
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.
Summary
Sign-in has been failing with a 404 since 2026-09-10. Apple stopped serving
https://appstoreconnect.apple.com/olympus/v1/app/config?hostname=itunesconnect.apple.com,which
Clientuses to obtain theX-Apple-Widget-Keyrequired by every subsequentauthentication request.
fetchServiceKeyhad no fallback, so the 404 surfaced directlyto the user before any credentials were sent.
Reported in XcodesOrg/XcodesApp#850.
Root cause
The endpoint returns a 423-byte HTML error page:
The rest of olympus is healthy —
/olympus/v1/sessionstill answers401 Unauthenticated— and every authentication endpoint (
federate,signin/init,signin/complete) stillreturns JSON. Only
app/configis gone. Changing thehostnameparameter, requesting thesame path on
itunesconnect.apple.com, or tryingolympus/v2/app/config(401, so it needsa session that does not exist yet) does not help.
Fix
fetchServiceKey()still prefers the App Store Connect endpoint, so this keeps workingunchanged if Apple restores it. When that request fails, the key is read from the
widgetKeyvalue embedded in the Developer portal sign-in page.Verification
signin/initaccepts the extracted key and returns a hashcash challenge(
X-Apple-HC-Bits: 10), whichloadHashcashneeds.xcodesCLI against this branch, signed in with 2FA, and downloaded andinstalled Xcode 27.0 Release Candidate (27A266a) end to end.
swift test: 17 tests, 0 failures. Two new tests cover the fallback path and that theexisting endpoint is still preferred when it works.
Notes
fetchServiceKey()is not memoized, matching existing behaviour: both call sites alreadyrequested
itcServiceKeyon every sign-in.🤖 Generated with Claude Code