feat(desktop): H-4 trustee-only recovery alignment + KEY-17 cancel path (#136 slice 2 client) #141

Merged
amiryahaya merged 4 commits from feat/desktop-recovery-alignment into main 2026-11-10 15:38:58 +01:00
Owner

Desktop-client alignment with the landed H-4/KEY-17 server contracts (#136 slices 1-2) + CI hardening:

Recovery alignment:

  • Tauri: upload_recovery_server_share -> setup_recovery_trustee_only (key proof derived Rust-side from stored KEM public key -- fixes the latent break: no frontend key_proof source); get_server_share command/fn/struct removed; cancel_recovery_request added (KEY-17 owner cancel)
  • tauri.ts: setupRecovery() parameterless; cancelRecoveryRequest(); splitMasterKey -> { file1, file2 } (share 3 discarded client-side); recoverWithFileAndServer removed
  • Wizard step 3: activation only; RecoveryPage: file-and-server path removed
  • Notifications: recovery_alert + recovery_cancelled types (panel + dropdown)
  • tsbuildinfo gitignored

CI hardening (desktop-ci flake fixes -- 12399/12400/12404):

  • SharedWithMePage tests: persistent mockResolvedValue fallback (Once-chains exhausted on multi-invoke components -> Network-error cascades)
  • MySharesPage: waitFor 1s -> 3s (load-sensitive dialog-close assertions)

Validation: desktop-ci SUCCESS on final head (12402 + 12407); local suite 75 files / 1280 passed + 1 skipped; cargo check clean; lint 0 errors (10 pre-existing warnings). Client portion of #136 slices 1-2; server slices landed in #137/#138.

Desktop-client alignment with the landed H-4/KEY-17 server contracts (#136 slices 1-2) + CI hardening: **Recovery alignment:** - Tauri: upload_recovery_server_share -> setup_recovery_trustee_only (key proof derived Rust-side from stored KEM public key -- fixes the latent break: no frontend key_proof source); get_server_share command/fn/struct removed; cancel_recovery_request added (KEY-17 owner cancel) - tauri.ts: setupRecovery() parameterless; cancelRecoveryRequest(); splitMasterKey -> { file1, file2 } (share 3 discarded client-side); recoverWithFileAndServer removed - Wizard step 3: activation only; RecoveryPage: file-and-server path removed - Notifications: recovery_alert + recovery_cancelled types (panel + dropdown) - tsbuildinfo gitignored **CI hardening (desktop-ci flake fixes -- 12399/12400/12404):** - SharedWithMePage tests: persistent mockResolvedValue fallback (Once-chains exhausted on multi-invoke components -> Network-error cascades) - MySharesPage: waitFor 1s -> 3s (load-sensitive dialog-close assertions) **Validation:** desktop-ci SUCCESS on final head (12402 + 12407); local suite 75 files / 1280 passed + 1 skipped; cargo check clean; lint 0 errors (10 pre-existing warnings). Client portion of #136 slices 1-2; server slices landed in #137/#138.
- Tauri: upload_recovery_server_share → setup_recovery_trustee_only —
  key proof derived Rust-side from the stored KEM public key (fixes the
  latent break: the frontend never had a key_proof source under the new
  contract); get_server_share command + service fn + ServerShareResponse
  removed (endpoint gone server-side); cancel_recovery_request added.
- tauri.ts: setupRecovery() parameterless; cancelRecoveryRequest();
  splitMasterKey maps indexed tuples → { file1, file2 } (share 3
  discarded client-side, never uploaded); recoverWithFileAndServer
  removed.
- Wizard step 3: activation only — server-share upload copy gone.
- RecoveryPage: file-and-server path removed (endpoint gone server-side;
  Rust command didn't exist for it either); 2-files path remains.
- Notifications: recovery_alert + recovery_cancelled types with
  icon/color cases (panel + dropdown filter).
- tsbuildinfo artifacts gitignored.

Suite 1280 passed + 1 skipped; cargo check clean; lint 0 errors.
- Tauri: upload_recovery_server_share → setup_recovery_trustee_only —
  key proof derived Rust-side from the stored KEM public key (fixes the
  latent break: the frontend never had a key_proof source under the new
  contract); get_server_share command + service fn + ServerShareResponse
  removed (endpoint gone server-side); cancel_recovery_request added.
- tauri.ts: setupRecovery() parameterless; cancelRecoveryRequest();
  splitMasterKey maps indexed tuples → { file1, file2 } (share 3
  discarded client-side, never uploaded); recoverWithFileAndServer
  removed.
- Wizard step 3: activation only — server-share upload copy gone.
- RecoveryPage: file-and-server path removed (endpoint gone server-side;
  Rust command didn't exist for it either); 2-files path remains.
- Notifications: recovery_alert + recovery_cancelled types with
  icon/color cases (panel + dropdown filter).
- KEY-17 tests: owner cancel surfaces; reauth gate messaging surface.

Suite 1280 passed + 1 skipped; cargo check clean; lint 0 errors.
fix(clients): pin vite ^7.3.8 — vite 8 (rolldown) is peer-invalid for plugin-react and drops transformWithEsbuild
All checks were successful
Security CI / security-scan (pull_request) Successful in 2m11s
a86362f269
The vite@latest bump pulled vite 8.3.7: peer-invalid for
@vitejs/plugin-react, and its rolldown core removed transformWithEsbuild
(desktop build broke). Pin both clients to the patched 7.3.8 per audit.
Desktop suite 1280 green incl. vite build; admin suite 237 green,
tsc clean.
test(desktop): harden MySharesPage/SharedWithMePage waitFor timeouts + persistent invoke fallback
All checks were successful
Security CI / security-scan (pull_request) Successful in 2m33s
d3e3f98626
- SharedWithMePage: persistent mockResolvedValue fallback in beforeEach —
  Once-chains exhaust on multi-invoke components and later invokes return
  undefined ('Network error' cascades seen in desktop-ci 12399/12404).
- MySharesPage: waitFor timeouts 1s → 3s (dialog-close assertions at
  default timeout are load-sensitive; flaked in desktop-ci 12400).
Both classes green; full suite green.
Sign in to join this conversation.
No description provided.