permission-boundary-modeling

Model authorization as subject-resource-action-condition rules with auditable backend enforcement.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/machenjie/rd-skills --skill permission-boundary-modeling
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: permission-boundary-modeling
Source: https://github.com/machenjie/rd-skills/tree/main/src/foundation/capabilities/permission-boundary-modeling
Command: npx skills add https://github.com/machenjie/rd-skills --skill permission-boundary-modeling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prevents privilege escalation, cross-tenant data leakage, IDOR vulnerabilities, and overly broad service account permissions by modeling authorization as explicit subject × resource × action × condition rules enforced server-side.

Core Features & Use Cases

  • Object-level authorization modeling: Defines authorization using tenant isolation, resource ownership/scope, lifecycle state constraints, and trusted server-side condition evaluation.
  • Deny semantics without data disclosure: Specifies when to return 404 vs 403 to avoid confirming whether restricted resources exist.
  • Auditable enforcement guidance: Requires authorization decisions and high-risk mutations to emit append-only audit events including subject, tenant, resource, action, and request context.

Quick Start

Use permission-boundary-modeling to map a proposed API or role/permission change into a complete authorization and enforcement plan that your backend team can implement with correct 404/403 behavior and auditable decisions.

Frequently Asked Questions about permission-boundary-modeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent IDOR vulnerabilities in API endpoints?▼

To prevent IDOR vulnerabilities, model authorization as explicit subject, resource, action, and condition rules enforced server-side at the object level. This approach validates resource ownership and scope before returning data.

Should my API return 404 or 403 for restricted resources?▼

Apply deny semantics to determine whether to return 404 or 403, ensuring restricted resource existence is not disclosed to unauthorized users. This prevents confirming whether a requested object actually exists.

How do I model object-level authorization for multi-tenant isolation?▼

Model object-level authorization by defining explicit tenant isolation boundaries, resource ownership, and lifecycle state constraints with trusted server-side condition evaluation. This prevents cross-tenant data leakage.

How to design auditable enforcement points for RBAC and ABAC?▼

Design auditable enforcement points by requiring authorization decisions and high-risk mutations to emit append-only audit events capturing subject, tenant, resource, action, and request context for compliance tracking.

How to restrict service account permissions for bulk operations?▼

Restrict service account permissions by applying per-object authorization modeling to bulk operations and background jobs. This ensures service accounts only access explicitly permitted resources within their scope.