[GH-ISSUE #5427] macOS launcher: Microsoft sign-in fails after self-update deletes the running app bundle #1671

Closed
opened 2026-11-02 15:48:48 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @guilhermejansen on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5427

Originally assigned to: @guilhermejansen on GitHub.

Microsoft sign-in can fail on macOS after the launcher updates itself while its window stays open (observed with v0.2.31, arm64):

Platform secure storage failure: UNIX[No such file or directory]

replace_bundle moves the running app aside, installs the new bundle, then immediately deletes the old one. The old process continues running, but its mapped executable no longer exists. Creating a Keychain credential then returns OSStatus 100002.

An isolated Rust probe using the launcher's locked keyring 3.6.3 / security-framework 3.7.0 reproduces this with synthetic credentials. A fresh process writes and reads successfully; deleting its old bundle after replacement causes the error; retaining the bundle lets the same write and cross-process read succeed.

Restarting the launcher is a workaround. The fix is to retain retired bundles while processes still use them and clean them up conservatively afterwards, without changing the account backend or signature checks. Rollback backups also need to stay protected until the update is committed.

Originally created by @guilhermejansen on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5427 Originally assigned to: @guilhermejansen on GitHub. Microsoft sign-in can fail on macOS after the launcher updates itself while its window stays open (observed with v0.2.31, arm64): `Platform secure storage failure: UNIX[No such file or directory]` `replace_bundle` moves the running app aside, installs the new bundle, then immediately deletes the old one. The old process continues running, but its mapped executable no longer exists. Creating a Keychain credential then returns OSStatus 100002. An isolated Rust probe using the launcher's locked keyring 3.6.3 / security-framework 3.7.0 reproduces this with synthetic credentials. A fresh process writes and reads successfully; deleting its old bundle after replacement causes the error; retaining the bundle lets the same write and cross-process read succeed. Restarting the launcher is a workaround. The fix is to retain retired bundles while processes still use them and clean them up conservatively afterwards, without changing the account backend or signature checks. Rollback backups also need to stay protected until the update is committed.
Author
Owner

@guilhermejansen commented on GitHub (Oct 31, 2026):

/claim

<!-- gh-comment-id:6548008161 --> @guilhermejansen commented on GitHub (Oct 31, 2026): /claim
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
horizon-rust/horizon#1671
No description provided.