feat(keys): H-4 trustee-only migration — the server share ceases to exist (#136 slice 2) #138
No reviewers
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!138
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/136-trustee-only"
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?
#136 slice 2 — the H-4 remediation: the server-held share contradicted the trustee-only 2-of-3 design AND was a live liability.
GET /api/recovery/sharewas a PUBLIC, DID-keyed endpoint handing the server share to anyone holding the DID — with one phished trustee share that made 2-of-3.Removed:
server_sharefrom the /setup contract and the RecoverySetup schema (migration drops the column) — the server now holds ONLY the epoch KeyProof, which gates completion but is not a shareUnchanged: recovery completion keeps both gates — KeyProof match (fixed-time compare) + an APPROVED trustee request in the current epoch (#86). 2-of-3 trustee approval is the only path to recovery.
Tests: TrusteeOnlyMigrationTests (new): setup without server_share succeeds; share endpoint answers 401/404 — never a share; completion gates still enforced. RecoveryShamirTests reworked to the trustee-only contract; RecoveryProbeEvidenceTests retired (endpoint gone). All recovery suites green.
Suite 977/0/39 (Release+Debug), coverage gate 87.70%. Slice 2 of #136; remaining: KEY-13 wrap-fetch limiter check, KEY-19 entropy pin, golden vectors.