Access Control & Authorization
Enforces robust role-based access control, zone permissions, and endpoint gating across APIs and backend services.
The Access Control skill provides architectural patterns and guidelines for implementing authorization, permissions, and role-based gating using access-zone wrappers. It ensures secure tRPC procedure configuration, proper public sentinel resolution for anonymous callers, optimized request-level memoization, and safe field-level redaction. This skill prevents common security pitfalls such as fail-open database queries, permission leakage in relationship reads, and role-check bypasses on personal profiles.
주요 기능
01Public caller sentinel handling to prevent fail-open filter bugs
02Multi-tier request memoization and durable cache invalidation strategies
03Canonical serializer integration for leak-free per-field data redaction
04Combined assert-and-fetch patterns for mutations and administrative actions
05Domain-aware assertion wrappers for instances, organizations, and profiles
060 GitHub stars
사용 사례
01Locking down tRPC procedures, server actions, or API routes with role checks
02Restricting UI components or backend mutations to specific admin roles
03Handling mixed anonymous and authenticated caller visibility safely