Multi-Tenancy Patterns
Multi-tenancy patterns for Highflame — per-tenant client instances, session scoping, ZeroID tenant isolation, Cedar context injection, and isolation guarantees.
Account and Project Scope
# Python — explicit account and project scoping
from highflame import Highflame
client = Highflame(
api_key="hf_sk_...",
account_id="acc_tenant_a",
project_id="proj_prod",
)// TypeScript — explicit account and project scoping
import { Highflame } from "@highflame/sdk";
const client = new Highflame({
apiKey: "hf_sk_...",
accountId: "acc_tenant_a",
projectId: "proj_prod",
});Per-Tenant Client Instances
Per-Tenant Session Tracking
Per-Tenant ZeroID Configuration
Per-Project Policy Isolation
Tenant tier
Project
Policy set
Custom Headers for Tenant Routing
Passing Tenant Identity Context to Cedar
Single-Client Multi-Tenant Pattern
Isolation Guarantees
Last updated