provisioning service hardening - ponytail round-1 deferred findings (race catch, error propagation, email lookup, claims validation) #59
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#59
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?
Follow-ups from the PR #56 ponytail review (findings 2-5, deferred at merge; 1/6/7 fixed in
7e2aa03). All inUserProvisioningService/ wallet registration path:SaveChangesAsyncwith theIsUniqueConstraintViolationcatch (move helper into the service); on violation clear tracker, re-fetch by DID/email, continue - the atomic claim already prevents double-join. Restores graceful handling on/register/verify+ accept-with-wallet double-clicks/retries.provisioned.ErrorthroughProvisionUser.nullnot""when a wallet identity has no email (""dodges theEmail IS NOT NULLfiltered unique index semantics).shared_claims.emailon the [SsdidPublic]/register/verify: >160 chars or garbage -> DbUpdateException 500 + junk rows.MailAddress.TryCreate+ length <= 160 (match CreateInvitation); invalid claim treated as absent.Suite baseline: 767 total / 0 failed / 39 skipped (Release). TDD per SS2: failing test first for each.
provisioning service hardening — ponytail round-1 deferred findings (race catch, error propagation, email lookup, claims validation)to provisioning service hardening - ponytail round-1 deferred findings (race catch, error propagation, email lookup, claims validation)