Skip to content

fix(identity): serialize competing provisioning adoptions - #1109

Merged
jiashuoz merged 1 commit into
mainfrom
fix/provision-adoption-serialization
Nov 23, 2026
Merged

jiashuoz merged 1 commit into
mainfrom
fix/provision-adoption-serialization

Conversation

@jiashuoz

@jiashuoz jiashuoz commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Concurrent provisioning requests with different external refs could both pass the same issuer/Google-holder ownership check. Serialize new adoptions on the holder row so exactly one succeeds and the other receives the existing conflict response. Matching replays still return the existing mapping, including after an email change; explicit principal attachment semantics are unchanged.

Adds a deterministic database regression that overlaps both requests at insertion and checks for one success, one conflict, and one mapping. The test fails before this change and passes afterward.

Validation: focused provisioning regressions pass; agent and telemetry suites pass. Independent and adversarial reviews found no remaining blockers. The complete identity suite passes with an explicitly UTC local test database (103s). An initial local run hit an unrelated daylight-saving-time-sensitive migration assertion under the laptop timezone; the focused migration and full suite both pass under UTC.

@jiashuoz
jiashuoz merged commit 75ca524 into main Nov 23, 2026
29 checks passed
@jiashuoz
jiashuoz deleted the fix/provision-adoption-serialization branch November 23, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant