M1-audit NICE batch: 9 small findings (dead QRCoder dep, dead helper, LinkOidc message, README stale, …) #96
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#96
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?
Batched nice-to-haves from the M1 closure audit (#84 umbrella):
AccountId != accessor.UserIdfilter: re-linking your OWN provider reports 'linked to another account'. Mirror LinkEmail.cs:31-34.using FailSulit.Api.Services;lines in both + ApproveRecoveryRequest.Re-verified all 9 items against main @
7f853c8(2026-11-11).FIXED / OBSOLETE (2):
STILL LIVE (7): 1 (QRCoder 1.7.0 still referenced in FailSulit.Api.csproj:25, zero usages), 3 (LinkOidc.cs:43 still lacks the AccountId != accessor.UserId filter — re-linking your own provider reports 'linked to another account'; LinkEmail.cs:31 is the correct pattern), 4 (CompleteRecovery still mapped; no NewDid pre-check — unique violation = 500), 6 (SessionCleanupService sweeps 5 tables — Sessions, SessionChallenges, TotpConsumedCodes, AuthFailureEvents, SignedStateNonces — PairingChallenge + RecoveryRequest NOT covered, rows with pubkey blobs live forever), 7 (CreateRecoveryRequest/InitiateRecoveryRequest still near-line-for-line duplicates; dup-using sub-item fixed), 8 (README.md:12 still documents wallet QR scan as the sign-in flow), 9 (ApproveRequest returns the stale AsNoTracking snapshot — reviewed_at always null in the response).
DISPOSITION: items 1, 3, 4, 6, 8, 9 + the item-2 remainder land in the hygiene batch PR today. Item 7 (recovery handler dedup) flows into the M3 recovery work alongside #95 items 6+7.
PR #145 MERGED (squash
4c87be7; PR runs green). Items 1 (QRCoder), 2-remainder (bare catch + stale comment), 3 (LinkOidc messages), 4 (CompleteRecovery 409), 6 (sweep covers pairing challenges + recovery requests >24h), 8 (README auth flow), 9 (reviewed_at) are FIXED — strike from this batch. Suite 987/0/39, gate 87.20%. Item 7 (recovery handler dedup) remains, flows into M3 recovery work.