Repository navigation
Closed
Labels
Description
Close the remaining desktop identity-confusion gap for macOS/Linux remote, local, and ProPR Connect endpoints.
Problem:
- The shared connectDiscovery parser is strict, but packages/client desktopPairing has a divergent permissive discovery parser.
- DesktopCredentialService.probe may reuse a stored bearer for /api/auth/user after only origin-level discovery.
- Connect validation observes publicInstanceIdentity but loses it when projecting/saving a profile.
- A same-origin server replacement or tunnel rotation can therefore receive an old stored bearer before its public identity is revalidated.
Requirements:
- Use one strict shared discovery schema/parser everywhere. Reject missing, extra, malformed, duplicate, oversized, incompatible, or noncanonical fields. Do not preserve the permissive client parser.
- Persist the validated public instance identity as main-owned profile/credential metadata, bound atomically to profile ID, canonical origin, credential generation, selection generation, and transport scope. Renderer must not author or override it.
- Before any stored bearer is attached to /api/auth/user, REST, or Socket.IO after launch/reconnect/switch, perform an unauthenticated strict discovery to the exact candidate origin and compare its public identity to the stored binding. Identity mismatch, absence, or malformed discovery must fail closed without sending any old bearer/cookie/socket auth and require fresh approval/re-pairing/generation.
- Preserve verified ProPR Connect auto-discovery identity through user confirmation, pairing, profile persistence, restart, and tunnel endpoint rotation. A new tunnel origin/identity must create a fresh generation; no old origin state, credential, socket, or cookie may cross. Manual HTTPS/allowed loopback behaves identically.
- Preserve current main-only bearer injection, no renderer tokens/cookies, exact origin matching, revocation/removal rollback, offline behavior, compatibility negotiation, and trusted-main pairing transport.
- Add adversarial tests for missing/extra/malformed discovery fields; same-origin identity replacement; relaunch mismatch before bearer; concurrent switch/rotation; Connect tunnel rotation; old-socket reconnect; persistence migration/fail-closed legacy records; and proof that zero bearer-bearing requests occur before identity match.
- Update relevant protocol/profile docs but do not change release workflows, package-lock.json, visual geometry, or Windows publication. Windows remains deferred to Deferred Windows desktop GA: finish x64/ARM64 package, ordinary-user Connect, and PowerShell durability gates #2074.
- Run focused shared/client/desktop/transport tests, typechecks, full relevant suite, git diff --check, and macOS/Linux packaged Connect/transport checks where available. Leave the PR unmerged for independent audit.
This is a required #1962 security block on the transport subepic.
Activity
propr-dev commentedon Sep 2, 2026
🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-5.6-sol2084/gpt-5.6-sol-bind-desktop-credentials--20260902-1955-ytg1953-epic-desktop-transport-apiissue-2084-20260902-1955-gpt-5.6-sol-ytg🔍 Track Task Execution
fix(ai): Resolve issue #2084 - Bind desktop credentials to strict pub…
integry commentedon Sep 4, 2026
Implemented by #2086, merged into
1953-epic-desktop-transport-api(8bcd46b). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.