Skip to content

feat(relay): add authenticated paired-device transport - #99

Merged
abruption merged 33 commits into
mainfrom
feat/69-relay-rc-hardening
Sep 19, 2026
Merged

abruption merged 33 commits into
mainfrom
feat/69-relay-rc-hardening

Conversation

@abruption

@abruption abruption commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds the opt-in paired-device direct and E2EE relay transport from #69, including the React/Better Auth control UI, GitHub and Google OAuth owner isolation, device-bound admission, durable replay and state rollback protection, key rotation/reconciliation, active connection revocation, KR deployment units, and operational documentation.

The RC now supports verified public GitHub/Google signup without an invitation list or user-count cap. New public signup is an explicit operator switch and can be closed without evicting committed identities. Explicit provider account IDs remain the break-glass operator allowlist and never auto-link by email.

Operators get a browser-session-only aggregate metrics page at https://relay.abruption.dev/admin/metrics. It reports service health, signup status, user/device/operation counts, and state revision without identifiers or credentials. A reviewed exact /session-peer Authelia-protected redirect block integrates the existing admin.abruption.dev portal without taking over its root or /api/* routes.

The final RC rerun also fixes Antigravity CLI 1.2.7 delivery: agentapi send-message now uses its documented positional arguments, and macOS process-start identity is locale-stable so a bridge created in a localized TUI remains visible to relay workers.

Closes #69

Type

  • feat
  • fix
  • docs
  • chore / refactor / test / perf

Checklist

  • Local listing works
  • Source-stream listing works over SSH to the KR host
  • Dry-run resolution is covered by the regression suite
  • Commits follow Conventional Commits
  • Behavior and RC validation docs are updated
  • No secrets, tokens, OAuth subject IDs, databases, replay state, or session keys are in the diff

Verified against

  • macOS arm64, Python 3.14.7: 405 Python tests with the compiled Node control integration enabled
  • Public-signup/operator-metrics delta: Node 22.14 and Node 24.16 independently passed typecheck, production build, 68 tests in 8 files, and runtime audit with 0 reported vulnerabilities; the Node/Python integration suite passed 5 tests
  • Current production Caddy configuration plus the exact admin portal redirect block passed full caddy adapt and caddy validate without changing the live file
  • Fresh wheel and sdist; wheel install with relay/MCP extras, pip check, version and clean-home CLI smoke
  • Ubuntu 24.04 arm64 KR deployment: control/ready/relay health, source-stream SSH listing, public TLS ingress, state/replay high-water preservation
  • Actual GitHub and Google callbacks with separate internal owners and account linking disabled
  • Actual direct and public-relay transcript ACKs from Claude 2.1.277, Codex 0.155.0, and Antigravity CLI 1.2.7
  • Production watchdog injection: control SIGSTOP recovered control, fresh readiness, and relay in 35.67 seconds; a post-recovery public Claude ACK passed
  • Actual KR reboot: the enabled stack target restored control → readiness → relay automatically; existing Caddy, auth, ontology, monitoring, rclone, Tailscale, SSH and central Vault services recovered
  • Actual encrypted R2 recovery drill: cold SQLite/key/replay snapshot, Restic backup d286abf2, isolated 180.638 MiB restore and manifest/DB/JWKS/high-water/runtime validation passed

Notes

The user explicitly excluded the continuous 24-hour test from this rerun. The earlier campaign was stopped after about 5 hours 21 minutes with no recorded failures or sample gaps and is retained as interrupted evidence, not presented as a 24-hour pass.

The admin portal redirect is included as a validated deployment artifact; it has not yet been installed or reloaded in production. Public signup remains closed in production until the RC rollout explicitly sets SESSION_PEER_PUBLIC_SIGNUP=true.

Windows keeps local/SSH support; the optional receiver/relay runtime remains Unix-only. This PR does not authorize merge, a release tag, or package publication.

abruption and others added 28 commits September 18, 2026 15:21
abruption and others added 2 commits September 19, 2026 23:23
* release: prepare v1.0.0-alpha.1

* ci: compare installed version literally
@abruption
abruption merged commit fe82fb9 into main Sep 19, 2026
21 checks passed
@abruption
abruption deleted the feat/69-relay-rc-hardening branch September 23, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add opt-in paired-device direct and E2EE relay transport

1 participant