defensive-tenant-isolation

Community

Strengthen multi-tenant isolation in SaaS apps.

AuthorRideMatch1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Cross-tenant data leakage and insecure access patterns in multi-tenant SaaS apps, caused by using tenant_id from user input or missing tenant scoping.

Core Features & Use Cases

  • Server-side primitive: secureApiRouteWithTenant ensures tenant_id comes from the authenticated session and is applied to all queries.
  • Anti-patterns and remediation: guides developers away from trusting request body or query params for tenant_id and demonstrates secure patterns.
  • Regression testing: provides test patterns to verify tenant isolation invariants across endpoints and data.

Quick Start

Install the AEGIS tenant-isolation patterns and start using secureApiRouteWithTenant in your API routes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: defensive-tenant-isolation
Download link: https://github.com/RideMatch1/a.e.g.i.s/archive/main.zip#defensive-tenant-isolation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.