Authorization — RBAC, ABAC, ReBAC (relationship-based, Zanzibar-style), policy engines (OPA, Cedar), tenancy scoping, object-level checks (BOLA), separation of duties, audit of permission changes, testing authorization matrices. Use to design or review who can do what (authorization, RBAC, ABAC, ReBAC, permissions, access control, OPA).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Authorization Models?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-authorization-models)
---
name: authorization-models
description: Authorization — RBAC, ABAC, ReBAC (relationship-based, Zanzibar-style), policy engines (OPA, Cedar), tenancy scoping, object-level checks (BOLA), separation of duties, audit of permission changes, testing authorization matrices. Use to design or review who can do what (authorization, RBAC, ABAC, ReBAC, permissions, access control, OPA).
metadata:
category: security
---
# Authorization models
## Purpose
Decide access centrally, consistently and testably.
**Use when:** designing or reviewing permission models.
**Not for:** authentication flows.
## Inputs
- Actors, resources, actions, sharing rules.
## Outputs
- Permission model, enforcement points, authorization test matrix.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "authorization models"` for prior decisions, patterns and anti-patterns.
- [Security standard](../../../standards/security.md)
## Steps
1. **Matrix.** List roles/relations × resources × actions.
Done when matrix covers every endpoint.
2. **Model.** RBAC for simple, ABAC for contextual, ReBAC for sharing hierarchies.
Done when model chosen with `decision-analysis`.
3. **Enforce.** Check at the resource level in the domain/service layer; deny by default.
Done when every handler has a check.
4. **Test.** Matrix-driven tests incl. cross-tenant and cross-user.
Done when denials tested.
## Best practices
- Audit permission changes.
- Avoid role explosion — use attributes or relations.
## Common mistakes
- Checks only in UI.
- Checking role but not ownership.
## Example
Docs app: ReBAC — viewer/editor/owner relations with folder inheritance; matrix tests 48 cases.
## Reusable prompt
```text
Apply the Authorization models skill (.agents/skills/authorization-models/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Build the authorization matrix, choose the model, define enforcement points and the test matrix.
Return: Permission model, enforcement points, authorization test matrix..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```