Tenant Isolation
Tenants are isolated customer or subscription contexts. Product code must preserve this boundary in reads, writes, administration, and support operations.
Implementation Facts
DomainEntityInterceptorpopulatesTenantId.TenantIdcomes fromIServiceContext.UserInfo.SubscriptionId.- Repository list and get queries must filter by tenant.
- API keys, templates, documents, users, and audit records should be treated as tenant-scoped.
Review Checklist
- Confirm every list query filters by
TenantId. - Confirm every get-by-id query verifies tenant ownership.
- Confirm cross-tenant administration is explicit and permissioned.
- Confirm support logs do not expose data from another tenant.