Skip to content
rejisterjack
WorkExperienceProjectsSkillsWritingToolsAboutContact
Get in touch
Toggle menu
HomeWorkExperienceProjectsSkillsWritingToolsAboutContactGet in touch
  1. Home
  2. Case Studies
  3. Multi-tenant AI agent marketplace
All case studies
PostQodeJul 2025 – Present

Multi-tenant AI agent marketplace

How does PostQode isolate multi-tenant AI agent marketplace data?

Rupam Das architected two-layer multi-tenancy at PostQode so purchased AI agents cannot cross tenant data: Prisma middleware plus SQL Server RLS on 35 of 100 models, CI that fails unscoped queries, and ARM deploys into each buyer’s Azure subscription.

Architected two-layer multi-tenancy for a 100-model, 61-route backend so purchased AI agents cannot cross tenant data — then deployed those agents into buyers’ own Azure subscriptions.

Published 2025-07-01 · Updated 2026-08-30

The constraint

A marketplace of agents is a tenancy and supply-chain problem before it is an LLM problem. One unscoped query, or one shared network path, collapses trust.

Architecture

Prisma middleware plus SQL Server row-level security via session context on 35 tenant-scoped models. CI guards fail any unscoped query. Azure Front Door, APIM, full VNet isolation, and private-endpoint SQL sit in front of an ARM orchestrator that deploys into buyer subscriptions with automated rollback. License checks use an in-process LRU plus Redis. Trivy, SBOM, and Notation signing run on every image. Architecture invariants cover a 21-domain, ~232-service codebase.

PrismaSQL Server RLSAzure Front DoorAPIMVNet isolationARMRedisTrivySBOMNotation

Sources / stack

  • Prisma
  • SQL Server RLS
  • Azure Front Door
  • APIM
  • VNet isolation
  • ARM
  • Redis
  • Trivy
  • SBOM
  • Notation

Isolation stack

  1. 01Edge
    • Front Door
    • APIM
  2. 02Network
    • VNet isolation
    • Private-endpoint SQL
  3. 03Application
    • Prisma middleware
    • Session-context RLS
    • LRU + Redis licenses
  4. 04Delivery
    • ARM orchestrator
    • Automated rollback
    • Trivy / SBOM / Notation

What we measured

Tenant-scoped models

35

Two-layer isolation across a 100-model backend

Baseline: 100

Backend surface

61routes

CI blocks any unscoped query before merge

Service graph

~232services

Invariants across 21 domains: tenancy, imports, OpenAPI/DB drift

Result

Defense-in-depth isolation on 35 models; CI as a tenancy control plane; buyer-subscription deploys with rollback; signed, scanned artifacts on the path to production.

rejisterjack

Full-stack engineer who owns production agentic systems — tenancy, tool-calling evals, and supply-chain-hardened delivery.

rejisterjack@gmail.com
GitHubLinkedInTwitter

Work

  • Case Studies
  • Process
  • FAQ

Explore

  • About
  • Experience
  • Projects
  • Skills
  • Writing

Connect

  • Contact
  • Tools

Newsletter

Notes on isolation, evals, and delivery — the parts of agentic systems that break after the demo.

No spam. Unsubscribe anytime in one click.

© 2026 rejisterjack. All rights reserved.

Privacy PolicyTerms of Servicellms.txt
HomeWorkExperienceProjectsContact