M3 phase-3 server batch: recovery anti-abuse (KEY-17), trustee-only migration (H-4), pairing/wrap hardening (KEY-19/13), golden vectors (3.7) #136
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#136
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Server-side slice of Phase 3 (Key Management & Multi-Device) — the part buildable before the client phases land. Source: phase-3.8 audit remediation items, gaps verified in code 2026-11-10.
Slices (each its own PR):
Acceptance: KEY-17 acceptance (initiation-flood exercises alert the owner; a phished trustee cannot complete recovery alone); server share ceases to exist; wrap-fetch limits enforced.
Slice 1 LANDED: KEY-17 anti-abuse (PR #137 squash, PR runs api-ci 12270 + security-ci 12271 green, suite 977/0/39, coverage 87.62%). Owner alert on both initiation paths (in-app recovery_alert + email best-effort), per-account 15-min cool-down (429 recovery_cooldown + audit) enforced across cancel, owner-only cancel endpoint (new Cancelled status, trustees notified), trustee approval recent-auth gate (LastLoginAt >15 min → 403 reauth_required + security audit). TestFixture minted sessions stamp LastLoginAt. Remaining: slice 2 (H-4 trustee-only ServerShare removal), slices 3-5.
Slice 2 LANDED: H-4 trustee-only migration (PR #138 squash, PR runs api-ci 12305 + security-ci 12306 green, suite 977/0/39, coverage 87.70%). server_share dropped from the /setup contract + RecoverySetup schema (migration DropServerShare); GET /api/recovery/share endpoint REMOVED (file + SEC-04 registry + matrix row) — the public DID-keyed server-share distribution was the live H-4 liability. Completion keeps both gates (KeyProof fixed-time + approved trustee request, #86 epoch). RecoveryShamirTests reworked to trustee-only; RecoveryProbeEvidenceTests retired (endpoint gone). Remaining: KEY-13 wrap-fetch limiter check, KEY-19 entropy pin, golden vectors.
ALL SERVER-SIDE SLICES RESOLVED — closing. Verification outcome for the last two items:
Landed slices: #137 slice 1 (KEY-17: owner alert both paths + email, 15-min cool-down enforced across cancel, owner cancel endpoint, trustee recent-auth gate) + #138 slice 2 (H-4: server share removed from contract/schema/public endpoint — trustee-only 2-of-3 is now the only recovery path, completion gated by KeyProof + approved request).
Final suite state: 977/0/39, coverage 87.7%.