Aegis Multi-Tenancy Enforcer

0•

Enforces strict data isolation by ensuring all MongoDB queries include a mandatory community identifier to prevent cross-tenant data leaks.

The Aegis Multi-Tenancy Enforcer is a specialized security skill designed to maintain data integrity and isolation within multi-tenant community platforms. It provides Claude with rigorous patterns for writing MongoDB queries, repository methods, and service logic where every operation is filtered by a verified communityId. By mandating that tenant identifiers originate from authenticated JWT tokens rather than potentially forged request bodies, this skill establishes a zero-trust architecture that prevents accidental security breaches and unauthorized data access between different communities.

主な機能

010 GitHub stars
02Mandatory communityId filtering for all MongoDB CRUD operations
03Multi-tenant optimized compound index patterns
04Secure context extraction for community identifiers from JWT tokens
05Tenant-aware aggregation pipeline validation and enforcement
06Anti-pattern detection for global queries and forged request bodies

ユースケース

01Developing secure repository methods for multi-tenant SaaS applications
02Auditing backend service logic for potential cross-tenant data leaks
03Optimizing MongoDB indexes for high-performance tenant-isolated queries