rouse-context/core
monkopedia-coder e635e73393
Keypair device identity for foss flavor (#462) (#468)
* Keypair device identity for foss flavor (#462)

Replace Firebase Anonymous Auth with a hardware-keypair identity for the
`foss` flavor, while the relay accepts BOTH Firebase (google) and keypair
(foss) auth simultaneously.

Relay:
- DeviceRecord gains an optional key_thumbprint (base64 SHA-256 of SPKI DER);
  find_device_by_thumbprint mirrors find_device_by_uid.
- New keypair_auth module: canonical proof message, bounded-timestamp replay
  check, signature verify, thumbprint derivation (+ unit tests).
- POST /register, /register/certs, /renew accept a keypair variant alongside
  the unchanged Firebase path.

App (foss only):
- Real keypair DeviceCredentialProvider + RenewalAuthProvider replace the
  stub auth bindings; google keeps its Firebase impls.
- Flows thread a flavor-agnostic DeviceCredential.

Part of #460. Fixes #462.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* cargo fmt the keypair_auth relay code (#462)

CI Format check (rustfmt) flagged the new keypair_auth/register/renew
Rust code. Pure formatting; no logic change.

---------

Co-authored-by: Monkopedia <monkopedia@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 15:17:12 -04:00
..
bridge Fix #248: Add Kover coverage measurement + CI aggregated report (#254) 2026-04-18 17:11:09 -04:00
mcp Extract shared ReadinessGate (#454) (#457) 2026-06-08 10:40:17 -04:00
testfixtures Fix #377: Replace 500ms session-registration sleep with deterministic Notify signal (#399) 2026-04-24 23:39:09 -04:00
tunnel Keypair device identity for foss flavor (#462) (#468) 2026-06-13 15:17:12 -04:00