Search docs
Docs searchValidation rule
Back to Rule CatalogAP-TEN-003Tenant IsolationCross-tenant access risk
Flags flows that may combine or expose data across tenant boundaries.
warningviolationNo auto-fix
How to fix
- Constrain the flow to one tenant.
- Add explicit administrative authorization for cross-tenant operations.
- Document and test any intentional global access path.
What it means
A workflow appears capable of reading, writing, or joining records from multiple tenants without explicit approval.
Why it matters
Cross-tenant access is one of the highest-impact risks in shared Cloud systems.
Common causes
- A global lookup is used in a tenant-scoped endpoint.
- A join crosses organization boundaries.
- Admin tooling reuses tenant-scoped code without clear safeguards.
Example bad pattern
A repository activity query aggregates all organizations for a member-scoped dashboard.Example good pattern
The dashboard query scopes activity to the active organization unless an audited admin path is used.Related files/config
apps/api/srcapps/web/app/apipackages/db/prisma/schema.prisma
Related CLI commands
archpilot validatearchpilot validate --ci
Related docs