B-5 Recovery share endpoint requires auth — recovery flow is self-broken #36
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#36
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?
GetRecoveryShare.cs:10-12 maps GET /api/recovery/share WITHOUT [SsdidPublic], unlike its siblings (CreateRecoveryRequest.cs:16, GetReleasedShares.cs:13, CompleteRecovery.cs:17). SsdidAuthMiddleware requires a Bearer session — but recovery is the one flow where the user has NO credentials (docs/superpowers/specs/2026-03-14-recovery-shamir-design.md:166-170 says so explicitly). Recovery Path B (1 .recovery file + server share) is impossible from a clean device. Integration test enshrines the bug: RecoveryShamirTests.cs:201 'Retrieval by DID (requires auth)'.
Fix: add [SsdidPublic] (+ keep the 200ms constant-time padding + 5/DID/hr rate limit); fix the test to assert public access. Full findings + evidence: docs/redesign/2026-11-onboarding-passkey/08-code-baseline-review.md