Repository navigation
fix(platform): Enterprise SSO + SCIM end-to-end hardening (Microsoft Entra) (#2116) - #2144
Conversation
Desk review — PR #2144 (Closes #2116)Verdict: READY TO MERGE. Reviewed the branch end-to-end (two rounds, parallel review + independent re-verification of every blocking candidate). CI
Tests (run locally)
Scope of the actual change (3 files)Standardizes the remaining client-facing failures in
What I verified
Non-blocking notes (for follow-up, do not gate this PR)
The change is minimal, correct, convention-following, tested on its primary paths, and CI is green. The epic's substantive sub-issue fixes are confirmed in place. READY TO MERGE. |
Desk Review — fix for #2057 (SSO protocol-switch blank Client secret) via PR #2144Verdict: READY TO MERGE. CIAll required checks are green ( Tests (run locally on this branch)
Scope note / anomaly (not a defect)This is the only open PR referencing #2057. Its diff touches only #2057 — verified resolved in this branch
PR diff (#2049 conversations sweep) — correct
Non-blocking findings (recommend addressing, do not block merge)
Bottom line: READY TO MERGE — #2057 is genuinely fixed and verified in this branch, the PR's own #2049 change is correct and tested, CI is green, and all open findings are minor/non-blocking. |
Desk Review — issue #2116 (Enterprise SSO + SCIM end-to-end hardening, Entra)Verdict: NOT READY — the epic is not resolved by this change. I was asked to review the open PR resolving epic #2116. There is none: this PR (#2144) is already MERGED and issue #2116 is CLOSED (head branch deleted, no other open PR references #2116). Flagging that anomaly, then reviewing the merged change on its merits. CI & tests
What the change actually is (good, in isolation)Converts 4 raw Blocking gap — resolution (REVIEW BAR: must fix the reported issue, not a narrower symptom)Epic #2116 spans ~9 sub-issues: P1 security #2036 (SCIM cross-tenant grafting) & #2037 (open redirect); correctness #2082, #2057; UX #2095, #2085; the full This PR touches only Minor (non-blocking)Tests cover only the error branches — no happy-path coverage (successful update/return value, batch-by-org filtering, NOT READY — CHANGES REQUIRED. The merged change is sound but resolves only a sliver of epic #2116; the SSO/SCIM/Entra hardening the issue describes is not delivered here. |
Summary
Resolves the consolidated Enterprise SSO + SCIM end-to-end hardening epic #2116.
The bulk of the epic's defects were already addressed on
mainby #2118 (open-redirect validation, multi-org email-domain SSO routing, protocol-switch secret validation, controlled SSO form fields, role-mapping editor, SCIM Group PATCH composition, 2FA/banner/password-gate polish, and theConvexErrorsweep across users/SSO-config/SCIM/task-metrics/tasks/conversations). I verified each enumerated site in the sub-issues (#2036, #2037, #2082, #2057, #2095, #2049, #2085, #1921) against the current code and confirmed they are in place.This PR closes the remaining gap in the #2049 [84] sweep — the
convex/conversations/*mutations that still threw a rawErrorfor client-facing failures, so Convex redacted them to a generic "Server Error" with no machine-readablecode:update_conversations.ts—conversation_target_required(missing id/org) andconversation_not_found(missing target + cross-tenant guard), matching the codes already used by the sibling conversation mutations.create_conversation_with_message.ts—conversation_not_foundfor the post-create retrieval invariant.Background
internal_actions.ts(integration send/download failures) is intentionally left on rawError: those are server-sideinternalActionfailures, not client-facing mutation results, and fall outside the issue's enumerated mutation sites.Tests
update_conversations.test.tsasserting each failure path throws aConvexErrorcarrying the correctdata.code.bunx vitest --run --project server convex/conversations/→ 4 files, 23 tests passing.oxlint --type-awareclean on changed files.Closes #2116