Permissions, data & business rules · Improve
Improve Multi Tenant Isolation
Fix the selected tenant/workspace/project isolation defect across authoritative query/policy/storage owners and directly affected consumers.
MCP library 1.6.1 · Instruction library 1.6.1 · English technical instructions
← Back to searchUse this workflow
Connect Vibe Coding Library to a coding agent that supports MCP over Streamable HTTP. Choose Other / MCP agent for a neutral prompt, or a ready-made Codex or Claude Code invocation. Add your task details below.
Goal
Fix the selected tenant/workspace/project isolation defect across authoritative query/policy/storage owners and directly affected consumers.
Scope selection
Use the selected resource, endpoint, job, search path, object key, cache key, audit finding, failing test, or explicit isolation bug. Do not redesign tenancy globally unless the selected fix requires a migration/refactor plan.
Change targets
- Owner-layer tenant scoping in queries, mutations, services, policies, storage keys, indexes, cache keys, and jobs.
- API/UI behavior for wrong-tenant/no-access/not-found states.
- Admin/staff/impersonation boundaries and audit logs when directly affected.
- Tests/fixtures for same-tenant, wrong-tenant, missing-tenant, and elevated-context cases.
- Maps/docs when the repository uses them for auth/data/traceability.
Implementation principles
- Enforce tenant isolation server-side and at data access boundaries.
- Avoid filtering after fetching broader data when owner-layer scoping is available.
- Preserve compatibility for existing tenant data; add safe migrations only when required.
- Do not touch unrelated resources, roles, or plans.
Validation
Run repository-native tests and targeted scenarios proving no cross-tenant read, write, list, search, job, export, or object access for the selected boundary. Report missing fixtures or external services as gates.
Repair trusted tenant propagation and authoritative query/policy/key ownership, then replay the same two-tenant case through the direct readers, writers and asynchronous consumers affected. Feed those identities, initial records and observed effects into Tenant Isolation Check. A failed edge returns to its owner; a passing selected boundary proceeds to Patch Checking without redesigning unrelated tenancy.
Workflow ID: multi-tenant-isolation-polish · View the versioned source · Shared workflow and authority rules