GitLab Well Architected
Cookbook navigation
Prompts / Multi-Tenant Data Isolation

Multi-Tenant Data Isolation

EnterpriseArchitectArchitectureSaasConfigureBeginner

Implement tenant boundaries for SaaS applications. Ensure complete data separation.

For GitLab Duo

prompt

Implement multi-tenant data isolation for [FEATURE]:

Requirements:
- [NUMBER] tenants
- Strict data separation
- Performance requirements: [SPECIFY]

Implement:
1. Tenant identification
2. Data partitioning
3. Query filtering
4. Access controls
5. Testing strategy

Use the prompt

Explain how tenant identity reaches the application and which data is shared. Review cross-tenant access attempts as carefully as the normal paths for an authorized tenant.