Transport V2: cut over SDKs, proxy, and Maple - #873
Open
AnthonyRonning wants to merge 5 commits into
Open
Conversation
Deploying maple with
|
| Latest commit: |
ca2b329
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ce703cff.maple-ca8.pages.dev |
| Branch Preview URL: | https://codex-session-v2-cutover.maple-ca8.pages.dev |
AnthonyRonning
force-pushed
the
codex-session-v2-cutover
branch
from
September 1, 2026 17:17
2318c6c to
ca2b329
Compare
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
0.4.0source-compatible boundary@opensecret/react-v1bridge only for already-released unversioned desktop OAuth continuationsThis PR is the cutover layer above #872 in GitHub stack #874. Existing published clients remain on
/v1; the new SDK major is V2-only and does not fall back. The matching OpenSecret server change is OpenSecretCloud/opensecret#337 at6df5f92f8ba6909b6c8051e9b6b4c80bce4d6b6b.Native OAuth handoff
The native process creates and retains a credential-free attested v2 session plus a fresh attempt secret. The hosted HTTPS URL carries the public native session ID in its query and the attempt only in the fragment. Hosted trusted code removes the fragment after storing it for the flow.
After browser authentication, the hosted SDK mints a five-minute backend-signed grant. The return custom-scheme URL contains only that grant, the public native session ID for stale-callback correlation, and a safe internal destination. It does not contain the raw attempt, an auth bundle, access or resumption descriptors, or the client cache root.
Tauri rejects a mismatched public session before consuming pending state, then supplies the locally retained raw attempt inside the encrypted redemption request on the exact original anonymous session. On success the Rust SDK transitions that same session into the bound user authority and exports an origin-bound opaque auth bundle over local IPC. Duplicate exact callbacks reuse only the completed local result; ambiguous send or response loss retires the attempt and requires restart.
The raw attempt is hidden from the forwarding HTTP path but remains visible to trusted same-origin hosted JavaScript. That trusted hosted code boundary is explicit.
Security properties
Validation
git diff --checkReview and rollout boundaries
application/octet-stream, and avoid full request or response buffering before deployment