GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(native): port DPoP pairing renewal, relay:configure scope, diagnostics, and SSH fixes by rynfar · Pull Request #448 · rynfar/t3code

Conversation

@rynfar

@rynfar rynfar commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Closes #440

Problem

Between upstream 4121b30 and 80cf4f7, five connection/pairing/SSH parity rows (CN-PAIR, CN-SESSION, CN-STATUS, CN-SSH, ST-SHARING) drifted to partial across DPoP device-key direct pairing and automatic token renewal, peer-link code purpose binding and link hygiene, relay:configure scope gating, expired-session/refused-route/notice diagnostics, and SSH runner/config edge cases.

Changes

  • DPoP device-key direct pairing & automatic token renewal (pingdotgg/t3code#37980, pingdotgg/t3code#37990):
    • Added apps/native/crates/client/src/dpop.rs using existing ring + base64 workspace crates for P-256 ES256 PKCS#8 device key generation/persistence (0o600), RFC 7638 JWK thumbprints, RFC 9449 typ: "dpop+jwt" proof signing/verification, DpopConnectionCredential storage, and per-host serialized renewal locks.
    • Updated apps/native/crates/client/src/auth.rs, store.rs, and supervisor.rs to detect descriptor capabilities (accessTokenRenewal, peerLinkPairingCodes), pair with DPoP when supported (keeping Bearer fallback for older hosts), attach Authorization: DPoP + DPoP proofs on HTTP/ticket/token-exchange requests, renew expired direct DPoP tokens (subject_token_type: "urn:ietf:params:oauth:token-type:access_token") on 401 and in a background renewal loop, and clear stored DPoP credentials on revoke/remove.
  • Peer-link pairing & link hygiene (pingdotgg/t3code#37825, pingdotgg/t3code#38442):
    • Updated crates/core/src/pairing.rs, crates/client/src/auth.rs, and crates/app/src/environments.rs to check peerLinkPairingCodes, send purpose: "peer-link" + access when minting peer-link codes, and validate response purpose/access.
    • Updated crates/core/src/settings/access.rs (pairing_url) and crates/app/src/settings/access.rs (effective_pairing_address) to skip non-HTTP(S) schemes (including t3code://) and loopback hosts in generated pairing links.
  • relay:configure scope & destination restrictions (pingdotgg/t3code#37823, pingdotgg/t3code#38892):
    • Added scope_warning, can_configure_relay, CloudLinkState, cloud_change_replaces_link, T3ConnectTurnOn, and resolve_t3_connect_turn_on in crates/core/src/settings/access.rs, wired into crates/app/src/settings/access.rs (including sensitive-scope warnings for terminal:operate/relay:configure and allowing remote clients with relay:configure to link).
  • Session, route & notice diagnostics (pingdotgg/t3code#38041, pingdotgg/t3code#33199, pingdotgg/t3code#38980, pingdotgg/t3code#37818):
    • Surfaced rejected request traceId through AuthError::AuthRefused, status::diagnose, environments::Rejected, and connect.rs expired-session card asking to pair again.
    • Added refused-route preflight tracking in routes.rs and supervisor.rs (refused_route_ids) and rendered refused routes in connect.rs.
    • Added withdraw_toast_by_key in toast.rs and called it in environments::remove_environment so removing an environment withdraws its permission-update toast without persisting permanent dismissal.
    • Added SavedEnvironments::check_ssh_onboarding_conflict in store.rs and guarded untargeted SSH onboarding in environments::adopt_ssh.
  • SSH fixes (pingdotgg/t3code#31396, pingdotgg/t3code#36672, pingdotgg/t3code#35268, pingdotgg/t3code#29428, pingdotgg/t3code#37840, pingdotgg/t3code#38184, pingdotgg/t3code#38208, pingdotgg/t3code#33288, pingdotgg/t3code#37150, pingdotgg/t3code#39184):
    • T3CODE_RELEASE_BASE_URL release mirror override, home_owned boot-service wait (REMOTE_LAUNCH_LOCK_WAIT_SECONDS = 145), host t3 execution + login-shell wrapper + child wrapper PID tracking, keeps_running_server no-downgrade guard, ASCII whitespace parsing & UTF-8 byte-level ? wildcard / Include sorting, literal ~ home paths, stdin-redirected sha256sum < / shasum -a 256 <, and dangling ~/.t3 symlink handling.
  • Parity ledger: Marked CN-PAIR, CN-SESSION, CN-STATUS, CN-SSH, and ST-SHARING back to done in apps/native/parity/LEDGER.md.

Verification

  • CARGO_INCREMENTAL=0 cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: pass (0 errors, 0 warnings)
  • CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-core -p t3-client -- --test-threads=1: pass (t3-client 158/158, t3-core 1780/1780, conformance 8/8)
  • T3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native --features snapshot -- connect:: settings::access:: toast:: --test-threads=1: pass (11/11)
  • CARGO_INCREMENTAL=0 cargo build --manifest-path apps/native/Cargo.toml -p t3-native: pass
  • vp fmt --check apps/native/parity/LEDGER.md: pass
  • node --test apps/native/parity/sync.test.ts: pass (47/47)

Model: Antigravity (g1-connect-dpop worker)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rynfar
feat(native): port DPoP pairing renewal, relay:configure scope, diagn…
159f473
…ostics, and SSH fixes

Port upstream connection, pairing, sharing, diagnostics, and SSH fixes for #440:
- Direct DPoP P-256 ES256 device-key pairing, proof signing, credential storage, and automatic token renewal with Bearer fallback (`pingdotgg#37980`, `pingdotgg#37990`)
- Peer-link pairing code `purpose: "peer-link"` binding/validation and `t3code://` exclusion from generated pairing links (`pingdotgg#37825`, `pingdotgg#38442`)
- `relay:configure` scope enforcement, sensitive-scope warnings, and remote client relay linking (`pingdotgg#37823`, `pingdotgg#38892`)
- Expired-session re-pair prompt with trace ID, refused-route surfacing, permission-update toast withdrawal on environment removal, and untargeted SSH onboarding conflict guard (`pingdotgg#38041`, `pingdotgg#33199`, `pingdotgg#38980`, `pingdotgg#37818`)
- SSH release mirror override, boot-service owner wait, host `t3` + login-shell wrapper, no-downgrade guard, UTF-8 byte-level wildcard/Include matching & sorting, literal home paths, stdin-redirected sha256 verification, and dangling ~/.t3 symlink handling (`pingdotgg#31396`, `pingdotgg#36672`, `pingdotgg#35268`, `pingdotgg#29428`, `pingdotgg#37840`, `pingdotgg#38184`, `pingdotgg#38208`, `pingdotgg#33288`, `pingdotgg#37150`, `pingdotgg#39184`)
- Mark CN-PAIR, CN-SESSION, CN-STATUS, CN-SSH, ST-SHARING done in apps/native/parity/LEDGER.md
@rynfar rynfar mentioned this pull request Nov 19, 2026
Factory status #13
Open
@rynfar
fix(native): add DPoP WS/HTTP proofs, route-resilient lookup, and upd…
3e6c168
…ate peer-link test

Address review findings on #448:
- Attach `dpop=<proof>` query param (`GET`, `http(s)://<host><pathname>`, `ath = sha256(wsTicket)`) in `auth::socket_url` for DPoP-paired hosts (`pingdotgg#37990`)
- Add shared `auth::send_authed_request` (DPoP + proof + 401 token renewal retry, Bearer fallback) and switch `history.rs`, `pull_requests.rs`, `preview_stream.rs`, and `voice.rs` HTTP callers off `.bearer_auth`
- Key/resolve DPoP credentials across multi-route fallback, token renewals, and SSH/local port relocations via `seed_token`/`previous_access_token` matching and `SavedEnvironments::relocate` migration
- Update `settings::environments::tests::link_dialog_reuses_link_machine_select_and_auto_mints_via_peer_pairing_code` mock and assertion for `purpose: "peer-link"` + `access`
@rynfar
rynfar merged commit 5196368 into native Nov 19, 2026
@rynfar
rynfar deleted the nw/g1-connect-dpop branch November 19, 2026 21:14
@rynfar rynfar mentioned this pull request Nov 19, 2026
parity(connect): DPoP device-key pairing renewal, relay:configure scope, peer-link binding & SSH fixes (CN-*, ST-SHARING) #440
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rynfar
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.