2.4 KiB
macOS authorization reuse — 2026-10-12
Change
Previously disconnect closed the authenticated control socket and terminated the privileged helper. Every reconnect launched another helper using administrator authorization. The macOS UI now owns a MacSystemVpnSession for its lifetime: stop releases the VPN through the existing stop operation, but retains the authenticated IPC channel. While stopped, a 30-second status heartbeat keeps the existing helper watchdog satisfied. Reconnect checks the cached helper before reusing it. Transport failure closes it and requests fresh authorization; cancellation can be retried. App disposal closes the owned session, and process exit closes its socket, triggering the helper's existing network cleanup. No launch daemon is installed, credentials are not cached, and socket ownership checks remain in place. Android behavior is unchanged.
The package script now uses the unique available Apple Development identity when no explicit MESHPORT_SIGNING_IDENTITY is supplied; otherwise it uses the requested identity or falls back to ad-hoc signing. The new package has an Apple certificate-based designated requirement rather than a changing ad-hoc code hash. Existing Keychain entries protected by the old signature may still require one migration confirmation. Future updates must retain the same signing requirement to avoid renewed access confirmation.
Checks
- Real Unix socket fixture: stop/start reuses the same client and invokes launch once; idle heartbeat works; final close removes private control directory.
- Dead helper replacement, cancelled authorization retry and close during pending authorization pass.
- Existing socket serialization/cleanup test passes.
- Flutter test suite and analyzer pass.
- Release build, deep/strict signature verification and ZIP integrity pass. Public bundled configuration verified.
- This change has not yet been tested against real macOS password dialogs on the user's VPN. Tests verify launch counts and IPC lifecycle without requesting root privileges.
Package
outputs/macos/MeshPort-0.1.0-1791871988-arm64-release.zip
SHA-256: 833337e3636cdf9ee2d49fbbebb3d0bd133dd4e6097a40b989ce12e11102327a.
Apple Silicon, macOS 12+, Apple Development signed, not Developer ID/notarized. Includes the narrowed macOS YouTube TCP fallback from the preceding release. Existing installed APP and user profiles were not replaced. No commits/pushes performed in this request.