Repository navigation
fix(den): revoke direct member access on removal - #4877
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Warden review summary — ClearNative findings: 1. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (100770 ms), confidentiality-review (32175 ms), spec-provenance-review (138926 ms), desktop-den-sync-review (54639 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (51b1ee83927bf21b863b8aecadbdef3c781fe217). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Summary
Canonical replacement for #3274, reconstructed on current
devatc23085ad2.Removing an organization member should revoke their direct assignments, not leave stale grants behind. This keeps the existing removal transaction, organization lock, admin-team guard, credential revocation, and fresh-membership rejoin behavior unchanged.
Verification
Head:
51b1ee83927bf21b863b8aecadbdef3c781fe217(verified signature).pnpm --filter @openwork-ee/den-api exec bun test --conditions development test/member-removal-rejoin.test.tspnpm evals:pr specs/scim-deprovisioned-sso-reprovision.test.tsgit diff --checkThe runtime journey cold-boots Den through
server()for both single-org and multi-org cases on the exact head. Placement: local, using dedicated disposable MySQL 8.4 and Redis containers, isolated test databases, and a deterministic mock IdP. No shared database, real provider, or cloud sandbox was used. Both cases assert that the seven direct assignment types are revoked, all 21 control/shared rows remain unchanged, and reprovision does not revive, copy, or retarget old grants.Verdict: Passed
The selected removal/rejoin and SCIM cleanup claims pass. Current-head assertion evidence is published separately on this PR. This does not claim a full test-suite pass or approval; required CI and independent review remain merge gates.
Deferred: SAML-specific callback coverage, desktop UI, and unrelated SCIM identity/session lifecycle changes. #4803 owns the SAML follow-up. Its default-role fixture repair and
test:dbregistration are reused identically here; the existing OIDC/protocol setup is otherwise untouched.