1. Two-Level Tenancy: Organizations vs. Client Workspaces
Pool agency billing and credit allowances at the organization root while hard-isolating every client's domains, leads, opt-outs, and sequences inside dedicated workspaces.
Managing ten B2B clients inside a single flat sequencer workspace creates unavoidable risk: folder filters rely on human discipline, shared suppression tables accidentally cross-block overlapping industries, and a single CSV import error exposes Client A's prospect list to Client B's campaign.
WarmerStack separates commercial administration (app.organizations) from operational execution (app.workspaces). The agency pays one consolidated Stripe invoice and holds one cryptographic key root, while every client operates inside a dedicated database-isolated workspace with zero shared sending assets.
| Resource | Scope | Client Viewer Access | Isolation Mechanism |
|---|---|---|---|
Stripe Subscription & InvoicesOrg Root | app.organizations | Blocked by RLS | Owner / Admin roles only |
256-bit Vault DEKCrypto Root | app.organizations | Never exposed | supabase_vault + zeroized buffers |
Monthly Quota PoolsPooled | app.organizations | Hidden | Sends, verifications, finder, seed tests |
Domains, Mailboxes & Tracking SSLIsolated | app.workspaces | Status read-only (no secrets) | Dedicated secondary domains + CNAMEs |
Leads, Sequences & UniboxIsolated | app.workspaces | Read-only reporting | FORCE RLS + workspace_id FK |
Permanent Opt-OutsImmutable | app.workspaces | Count / status only | app.workspace_opt_outs (DELETE revoked) |
2. PostgreSQL FORCE RLS, Vault DEKs & Context-Bound AAD
Defense-in-depth at the database and cryptographic layers ensures an application-level WHERE bug can never leak cross-client rows or transplant ciphertexts.
Every table in app.* — including monthly partitioned telemetry child tables — enforces both ENABLE ROW LEVEL SECURITY and FORCE ROW LEVEL SECURITY (preventing even table-owner roles inside the request path from bypassing policies). On Supavisor transaction-mode pools, per-request claims bind via SET LOCAL inside the active transaction, and all in-memory and Redis caches key strictly by (organizationId, workspaceId).
Policy predicates call SECURITY DEFINER helpers in the unexposed private schema wrapped inside scalar subqueries — (SELECT private.user_can_access_workspace(workspace_id)) — triggering PostgreSQL's InitPlan caching so the authorization lookup runs once per statement rather than per row.
Connected Google Workspace OAuth tokens, Microsoft 365 OAuth tokens, and SMTPS/IMAPS passwords are encrypted with a unique per-organization 256-bit CSPRNG Data Encryption Key stored in supabase_vault. Every AES-256-GCM ciphertext authenticates canonical Additional Authenticated Data (v1|org|ws|type|id|purpose|kv|rev) so copying an encrypted blob across workspaces or rolling back an older key revision fails authentication instantaneously. Raw DEK buffers are wiped via dek.fill(0) inside finally blocks.
-- Applied to every app.* workspace table and monthly telemetry partition
ALTER TABLE app.campaign_sequences ENABLE ROW LEVEL SECURITY;
ALTER TABLE app.campaign_sequences FORCE ROW LEVEL SECURITY;
-- Read access scoped to workspace members & read-only Client Viewer seats
CREATE POLICY ws_select ON app.campaign_sequences
FOR SELECT
USING ((SELECT private.user_can_access_workspace(workspace_id, 'client_viewer')));
-- Mutations restricted strictly to active agency members/admins
CREATE POLICY ws_modify ON app.campaign_sequences
FOR ALL
USING ((SELECT private.user_can_access_workspace(workspace_id, 'member')))
WITH CHECK ((SELECT private.user_can_access_workspace(workspace_id, 'member')));
-- Credential Vault tables restrict SELECT & ALL strictly to org admin/owner
-- AES-256-GCM AAD format: v1|org|ws|type|id|purpose|kv|rev3. Blast-Radius Containment Across Client Fleets
When one client supplies an unverified list or provocative offer, circuit breakers halt only that workspace — keeping sibling clients delivering cleanly.
Real agencies inherit messy client inputs: an aged conference spreadsheet, an aggressive promotional rewrite, or an overlapping niche campaign. Without physical and logical blast-radius boundaries, one noisy retainer jeopardizes every other client paying you monthly.
Trigger a simulated bounce spike or spam-complaint event in the interactive diagram below to inspect how WarmerStack isolates faults across three concurrent client workspaces.
Interactive Diagram · Blast-Radius Containment
Multi-Client Workspace Isolation Simulator
Agency Organization Root
app.organizations · Single Stripe Billing Root
Northstar SaaS
ws_northstar
- Pool tier
- High-Trust (Score 94)
- Daily cold cap
- 180/day (6 mb)
- Tracking CNAME
- track.northstar-outreach.com
- Opt-out ledger
- 412 isolated rows
- Client Viewer
- Online · 0 secrets
FinEdge UK
ws_finedge
- Pool tier
- High-Trust (Score 94)
- Daily cold cap
- 270/day (9 mb)
- Tracking CNAME
- track.finedge-hq.co.uk
- Opt-out ledger
- 289 isolated rows
- Client Viewer
- Online · 0 secrets
Apex Cloud
ws_apex
- Pool tier
- High-Trust (Score 94)
- Daily cold cap
- 180/day (6 mb)
- Tracking CNAME
- track.tryapexcloud.com
- Opt-out ledger
- 194 isolated rows
- Client Viewer
- Online · 0 secrets
Active Clients
3 / 3
Sibling Throughput
630/day unaffected
Cross-Tenant Leaks
0 rows
Viewer Secret Exposure
0 credentials
| Failure Event | Flat Folder Tool | WarmerStack Isolated Workspace |
|---|---|---|
3.4% hard-bounce spikeContained | Degrades shared tracking domain & pool standing | Only offending mailbox/workspace trips >2.5% Quarantine breaker |
0.15% spam complaint eventEvicted | Shared pool co-engagement spreads drag to siblings | Evicts offending mailbox (>0.10% or >=2 in 7d) immediately |
Tracking link blocklistedIndependent | Every client shares one redirect CNAME | Per-client track.<domain> & optout.<domain> TLS 1.3 CNAMEs |
Prospect unsubscribesScoped | Global list blocks unrelated clients from pitching | Immutable per-workspace app.workspace_opt_outs tombstone |
Client credential exposureZero-Secret | Shared team seat can view SMTP passwords or billing | Client Viewer blocked from Vault secrets, API keys & Stripe by RLS |
4. Zero-Secret Client Viewer & SHA-256 Approval Lock
Eliminate screenshot reporting decks and post-hoc 'we didn't approve that email' disputes with read-only portals and cryptographic sign-off digests.
Inviting a client contact as a Client Viewer gives them live visibility into their own workspace's campaign metrics, lead status, reply threads, and StackHeat™ inbox placement scores — while PostgreSQL RLS blocks all access to connected OAuth tokens, SMTP passwords, scoped REST API keys, sibling workspaces, and wholesale agency Stripe billing.
Before any sequence starts sending, WarmerStack serializes the exact campaign steps, templates, sender plan, and audience cohort into a canonical sorted-key JSON stream and computes its SHA-256 digest (streamingCanonicalApprovalHash). Object keys are sorted lexicographically and undefined properties stripped so JSONB round-trips never cause hash drift. Changing a single word in a subject line or appending one extra lead invalidates the sealed hash and blocks dispatch until re-approved.
- Client Viewer permissions: SELECT on own workspace analytics, lead progress, Unibox replies, placement reports, and approval history.
- Client Viewer blocks (enforced in Postgres RLS, not just UI hiding): mailbox credentials, Vault DEKs, API keys, agency invoices, and all sibling workspace rows.
- Canonical SHA-256 approval seal: immutable audit record linking approver user ID, timestamp, exact audience snapshot, and every step body.
- Instant company-wide reply stop (<10s): when any prospect replies or sends a stop phrase, downstream touches halt for matching colleagues inside that client workspace.
5. Scale Plan Unit Economics & 10-Client Agency Benchmark
Exact quotas and add-on economics sourced directly from WarmerStack's live billing catalog.
On a single Scale (Agency) subscription ($349/mo monthly or $3,490/yr annual), an agency running 10 active client workspaces with 1 Managed Warmed Mailbox 10-Pack ($115/mo) per client pays $1,499/mo total — approximately $150/client/mo for domains/SSL isolation, 100 warmed mailboxes, tiered warmup, seed placement, verification credits, and multi-tenant sequencing.
Compared against an equivalent fragmented 5-tool agency stack ($1,874/mo across outreach platform, raw mailbox slots, SSL masking across 40 domains, per-slot warmup, placement testing, and verification credits), that saves $375/mo ($4,500/yr) — preserving 94.0% gross retainer margin on $2,500/mo client retainers. Model custom retainers interactively on /agencies.
| Component / SKU | Included Allocation | Price (USD) | Notes |
|---|---|---|---|
Scale (Agency) BaseCore Plan | 15 workspaces · 15 seats | $349/mo ($3,490/yr) | Annual saves 2 months vs monthly |
BYO Slots & SendsIncluded | 75 BYO slots · 350,000 sends/mo | Included | 100,000 active leads cap |
Verification & FinderIncluded | 25,000 verifications · 750 finder/mo | Included | Top-ups: 25k verify $135 · 2.5k finder $79 |
Placement & Tracking SSLIncluded | 50 seed tests/mo · 60 custom hostnames | Included | Extra 50 seed tests: $49 |
Managed Warmed 10-PackPer Client | 10 warmed slots / pack | $115/mo | Auto DNS, SSL CNAMEs & StackHeat™ |
Choice 1A .com/.net/.orgBundle Promo | Up to 2 domains / Managed pack | $33/yr | vs $52/yr standalone (GM-guarded) |
Extra BYO 10-PackAdd-On | 10 extra BYO slots | $35/mo | Connect additional Google / M365 seats |
Dedicated IP ClusterPrivate IP | 10 private mailboxes + IP | $1,497/quarter | $499/mo equiv., billed quarterly |
6. Standard Operating Procedure: Client Onboarding & Offboarding
Repeatable checklist to launch new retainers safely inside 14 days and offboard churning accounts with zero residual leakage.
Standardizing workspace lifecycle removes ad-hoc errors across account managers and creates clean compliance audit trails whenever a client joins or departs.
- Onboard Step 1 — Provision dedicated workspace: create a fresh app.workspaces record, register 3–4 lookalike domains (Choice 1A at $33/yr where eligible), and assign 1 Managed 10-Pack (2–3 mailboxes/domain).
- Onboard Step 2 — Validate DNS & SSL: verify SPF (<=8 lookups), 2048-bit RSA DKIM, DMARC, MX, and TLS 1.3 on track.<domain> and optout.<domain>.
- Onboard Step 3 — Lock 14-day warmup: let mailboxes run inside Quarantine peer warmup while building and verifying the launch prospect list (0 cold sends Days 1–13).
- Onboard Step 4 — Pre-flight & SHA-256 sign-off: lint copy in /tools/spam-checker, run a baseline 6-ESP seed placement test, invite the client sponsor as Client Viewer, and lock the canonical SHA-256 approval hash.
- Offboard Step 1 — Drain & pause: halt new sequence intake immediately; let active positive replies drain through Unibox or hand off threads cleanly.
- Offboard Step 2 — Export & revoke: export the client's immutable app.workspace_opt_outs suppression log for regulatory recordkeeping, revoke Client Viewer seats and scoped REST API keys, and archive the workspace without disturbing sibling accounts.
Frequently asked questions
If a prospect unsubscribes from Client A, are they blocked from receiving Client B's campaigns?
How does PostgreSQL FORCE RLS protect us if an application query forgets a workspace_id filter?
What happens when our agency scales past 15 active client workspaces?
Can a Client Viewer ever see our agency Stripe invoice or raw mailbox credentials?
Companion Free Tool · Zero Sign-Up
Cold Copy Spam & Link Linter
Audit client sequence drafts for trigger phrases, link counts, public URL shorteners, and word-count balance before SHA-256 approval.
Continue reading
All playbooksInfrastructure Blueprint
Production sizing guide for secondary lookalike domains, TLD selection, 2–3 mailboxes per domain, 25–35 daily sends, and Cloudflare for SaaS tracking/opt-out CNAME isolation.
Warmup & Seed Testing
Inside WarmerStack's isolated 4-tier warmup pools, exact StackHeat™ (0–100) scoring math, 28-day ramp schedule, auto-recovery triggers, and 6-ESP seed inbox placement diagnostics.
Ship this architecture without five tools.
Provision secondary domains with 1-click Auto-DNS, StackHeat™ tiered warmup, 6-ESP seed tests, and circuit-breaker outbound sequencing from one workspace.