Aegis Multi-Tenancy Enforcer
Enforces strict multi-tenant data isolation by ensuring communityId is applied to all MongoDB queries and service logic.
The Aegis Multi-Tenancy Enforcer is a specialized skill designed to maintain high security and logical data isolation within the Aegis community platform. It provides Claude with a rigorous framework for writing MongoDB queries, repository methods, and service layers that mandate the inclusion of a community identifier in every operation. By prioritizing communityId extraction from authenticated JWT tokens rather than potentially forged request bodies, it effectively prevents cross-community data leaks and ensures that all database indexes and aggregation pipelines are optimized for tenant-specific access.
Key Features
01Automated enforcement of communityId filters in all MongoDB CRUD operations
02Detailed verification checklists for aggregate pipelines and service layer logic
03Secure tenant identification via JWT context over request body parameters
04Standardized repository patterns for secure find, update, and delete methods
050 GitHub stars
06Mandatory tenant-first compound indexing guidelines for performance and isolation
Use Cases
01Implementing secure repository layers in NestJS or Node.js MongoDB applications
02Auditing existing backend logic for multi-tenancy compliance and security gaps
03Preventing unauthorized cross-tenant data access in multi-user community platforms