Skip to content
Back to skills

Rbac Authorization

ASecurity

Implement role- and permission-based authorization with deny-by-default checks at the service layer

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsbackendsecurity

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill rbac-authorization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rbac Authorization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rbac Authorization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-rbac-authorization/badge)](https://www.skillsdirectory.com/skills/ansh44233-rbac-authorization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Implement role- and permission-based authorization with deny-by-default checks at the service layer
profile: standard
tags: security, authorization, rbac, backend
---

# RBAC authorization

Authentication says who; authorization says what. Most breaches are the second.

## Model
- Permissions are verbs on resources (`invoice:read`, `invoice:refund`); roles are bundles of permissions.
- Check permissions, not role names, in code.

## Enforcement
- Deny by default; one central `can(user, action, resource)` function or policy engine (Casbin, OPA, Pundit, CASL).
- Check object ownership/tenancy, not just the permission (prevents IDOR).
- Enforce on the server; UI hiding is only cosmetic.

## Operations
- Audit log for permission changes and privileged actions.
- Tests for each role against each sensitive action.

## Verify
A permission matrix test iterates roles × sensitive actions and asserts allowed/denied for each, including another user's object.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.