Multi-Tenant

Tenant isolation for agents, policies, audit trails, and scores. Registry-based tenant management.

Multi-tenant isolation ensures each organization gets a completely separate governance namespace. Agents, policies, audit trails, and scores are scoped to a single tenant with zero cross-tenant data leakage.

Tenant Registry

The registry manages tenant lifecycle and provides scoped storage for each tenant:

ts

Tenant Operations

ts

Scoped Storage

Each tenant gets a TenantStorage that extends the standard GovernanceStorage interface with tenant-specific queries:

ts

PostgreSQL Tenant Storage

For production, use the PostgreSQL-backed tenant storage:

ts

Each tenant gets its own set of database tables, ensuring complete data isolation at the storage layer.

Creating a Governance Instance per Tenant

ts

Bootstrap

For quick setup, use bootstrapEnterpriseTenant() which wires together multi-tenant storage, RBAC, analytics, incidents, and all other enterprise modules:

ts