Aegis Multi-Tenancy Enforcer

0•

Enforces strict data isolation by ensuring every MongoDB query and service method includes a mandatory community identifier.

The Aegis Multi-Tenancy Enforcer is a specialized skill designed to maintain rigorous security standards within the Aegis community platform. It guides Claude to automatically include communityId filters in all database operations, repository methods, and aggregation pipelines. By mandating that tenant identifiers originate from authenticated JWT tokens rather than potentially forged request bodies, this skill prevents cross-community data leaks and ensures that database indexes are optimized for tenant-specific lookups. It is essential for developers working on the Aegis backend to maintain a secure, isolated environment for all community members.

Key Features

010 GitHub stars
02Standardized repository patterns for secure find, update, and delete methods
03Guidance for tenant-first compound indexing for database optimization
04Validation of JWT-based tenant identification over request body inputs
05Strict aggregation pipeline filtering at the initial $match stage
06Automatic enforcement of communityId in all CRUD operations

Use Cases

01Designing MongoDB schemas and indexes that support high-performance multi-tenant queries
02Security auditing existing database logic to identify missing community filters
03Building new repository methods for Aegis services while maintaining tenant isolation