Multi-Tenant Isolation Test

Verify that data is correctly isolated by tenantCompanyId

Current Context
Frontend company selection and tenant ID
Company:Fireside AI, Inc.
Tenant ID:fireside-ai
Description:Parent company - AI Agentic development and consulting
Total Companies
...

0 active

Total Deals
...

Across all stages

Total Deal Value
...

Pipeline value

Companies (HERA CRM)
These companies should only belong to Fireside AI, Inc.

Loading...

Verification Steps
How to verify tenant isolation is working
  1. Switch between different companies using the CompanySwitcher above
  2. Observe that the company count and list changes for each tenant
  3. Open browser DevTools → Network tab
  4. Look for tRPC requests and verify x-tenant-company-id header is sent
  5. Verify that each tenant sees only their own data
  6. Expected counts per tenant:
    • Fireside AI: 3 companies
    • Builders Life OS: 2 companies
    • REHACTS: 2 companies
    • Climate Insight: 2 companies
    • FiscalGuard: 2 companies
    • DANA: 2 companies