Skip to content

fix(den): revoke all member-scoped access on removal - #3274

Closed
reachjalil wants to merge 1 commit into
different-ai:devfrom
reachjalil:feature/member-access-revocation
Closed

reachjalil wants to merge 1 commit into
different-ai:devfrom
reachjalil:feature/member-access-revocation

Conversation

@reachjalil

@reachjalil reachjalil commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Reassessed against dev at 858414c41c63a22eecfe331d17f3f5dd348dfc6f. This remains needed: current member removal revokes connected accounts, per-member LLM credentials, team memberships, direct model grants, sessions and API keys, and detaches SCIM projections, but leaves direct access assignments behind.

  • Hard-delete direct desktop-policy and external-MCP assignments in the existing member-removal transaction.
  • Soft-revoke marketplace, config-object, plugin, connector-instance and dashboard grants with the same timestamp as the membership removal. Dashboard grants were added after the original patch and have the same missing cleanup.
  • Preserve the current organization lock, admin-team removal guard, SCIM cleanup and credential-revocation paths.
  • Leave other members' grants, shared team/org grants, resource ownership and prior grant history intact. No migration is required.

Focused Verification

Head: 6718c0f2045e99f26860835279446a1e6d73120f (verified signature).

Executed from ee/apps/den-api with a scrubbed environment and a disposable, isolated MySQL 8.4 fixture initialized from this checkout:

pnpm exec bun --conditions=development test test/member-removal-rejoin.test.ts

Result: 8 passed, 0 failed, 0 skipped; 48 assertions; exit 0.

The regression checks all seven assignment types, identical soft-removal timestamps, preservation of every other-member assignment type (including grants created by the removed member), and shared team/org plugin grants. Existing re-invite and SCIM lifecycle assertions also pass.

The first run found an existing fixture defect: the re-invite test expected an admin role without seeding an assignable admin role. The identical command reproduced that failure on clean dev at 544b881c6 (6 passed, 1 failed). This patch seeds the missing role; the existing admin-role assertion is unchanged.

Den DB fixture prerequisite build and git diff --check passed. No shared database or real provider was used.

Verdict: Incomplete

The focused database tests pass, but they are not current-head @openwork/testkit runtime proof. Cold-boot member-removal/re-invite journey evidence remains deferred. No new cloud/E2E or manual review run was requested. This is not a full runtime Passed verdict.

Historical Verification

The original head e0b972001c8fb9acaa0894a630d804bd72a1e27f reported 31 focused tests / 146 assertions, a Den API build, and a 9-cell invite-reliability browser journey. These are historical reports only and do not validate this rebased head; the original local browser report was not published to the PR.

@vercel

vercel Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Sep 10, 2026 11:34pm UTC
openwork-den Skipped Skipped Sep 10, 2026 11:34pm UTC
openwork-diagnostics Skipped Skipped Sep 10, 2026 11:34pm UTC
openwork-landing Skipped Skipped Sep 10, 2026 11:34pm UTC

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics July 29, 2026 10:01 Inactive
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@reachjalil
reachjalil force-pushed the feature/member-access-revocation branch from e0b9720 to 6718c0f Compare September 10, 2026 23:34
@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 10, 2026 23:34 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 10, 2026 23:34 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 10, 2026 23:34 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 10, 2026 23:34 Inactive
@reachjalil reachjalil closed this Sep 18, 2026

This branch was previously deployed

4 inactive deployments
Preview – openwork-diagnostics — 6718c0f2 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 6718c0f2 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-landing — 6718c0f2 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 6718c0f2 Deployed Sep 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants