Enforces strict multi-tenant isolation by ensuring community identifiers are included in every MongoDB query and repository method.
The Aegis Tenancy Enforcer is a specialized security skill designed for the Aegis platform to prevent cross-tenant data leaks. It mandates that every MongoDB interaction—including find, update, and delete operations—incorporates a communityId filter derived from secure JWT tokens. By providing standardized patterns for repository methods, aggregate pipelines, and schema indexing, this skill helps developers maintain a secure, isolated environment for multi-community data management and prevents unauthorized cross-community access.
主な機能
01Aggregate pipeline stage enforcement
02Multi-tenant compound index optimization
030 GitHub stars
04Mandatory communityId query filtering
05Anti-pattern detection for repository methods
06Secure JWT-based identity extraction patterns
ユースケース
01Preventing unauthorized cross-community data access
02Standardizing data isolation patterns across a distributed service layer
03Securing MongoDB repository methods in multi-tenant applications