Skip to content
Back to skills

Rbac

ASecurity

Role-Based Access Control and OIDC integration skill for advanced harness engineering.

  • 46 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsgoapisecurityperformance

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add j4flmao/agent-skills --skill rbac --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rbac?

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

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

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
---
name: rbac
description: >
  Role-Based Access Control and OIDC integration skill
  for advanced harness engineering.
version: "2.0.0"
author: "j4flmao"
license: "MIT"
type: skill
compatibility:
  claude-code: true
  cursor: true
  codex: true
  windsurf: true
tags:
  - rbac
  - oidc
  - security
---

# RBAC and OIDC Integration

## Purpose
Comprehensive Role-Based Access Control with OIDC flow integration.

## Core Principles
1. Principle of least privilege
2. Secure token validation
3. Strict policy enforcement
4. Auditability of access
5. Separation of duties

## Agent Protocol
Triggers: Access requests
Input Context Required: User identity, requested resource, action
Output Artifact: Access decision
Response Formats:
```json
{
  "allowed": true,
  "reason": "Role has permission"
}
```

## Decision Matrix
```
[Request] -> [Check Token] -> [Extract Roles] -> [Evaluate Policy] -> [Decision]
```

## Detailed Architectural Overview
```
Client -> API Gateway -> RBAC Service -> Policy DB
                         |
                         v
                    OIDC Provider
```

## Workflow Steps
Phase 1: Initialization
1. Load policies
2. Connect to DB
3. Init cache

Phase 2: Token Validation
1. Parse JWT
2. Verify signature
3. Check expiry

Phase 3: Role Extraction
1. Get claims
2. Map to roles
3. Resolve hierarchy

Phase 4: Policy Evaluation
1. Find matching policies
2. Check conditions
3. Calculate final decision

Phase 5: Audit Logging
1. Format log entry
2. Add context
3. Write to stream

Phase 6: Response
1. Format response
2. Add headers
3. Send to client

## Extended Troubleshooting Guide
| Symptom | Primary Cause | Mitigation Action |
|---------|---------------|-------------------|
| Token rejected | Expired token | Refresh token |
| Role missing | Claim not mapped | Check mapping config |
| Policy failure | Condition not met | Review policy rules |
| High latency | DB slow | Add caching |
| Audit failed | Stream full | Increase capacity |
| Unknown error | Unhandled exception | Check logs |

## Complete Execution Scenario
```
Request -> Valid Token -> Role Admin -> Allow Action
```

## Rules and Guidelines
1. Always validate tokens first
2. Fail closed on errors
3. Log all access decisions
4. Cache policies for performance
5. Regularly review role mappings

## Reference Guides
1. [RBAC Fundamentals](references/rbac-fundamentals.md)
2. [RBAC Advanced](references/rbac-advanced.md)
3. [Role Engineering](references/role-engineering.md)
4. [RBAC Migration](references/rbac-migration.md)
5. [Framework Integration](references/framework-integration.md)
6. [Enterprise Org Structure](references/enterprise-org-structure.md)
7. [Admin & Break-Glass Access](references/admin-break-glass.md)
8. [Temporary Delegation Workflows](references/temporary-delegation-workflows.md)

## Handoff
Refer to auth skill.
<!-- compression footer -->

## References

### Shared References
Additional reference material for this skill, stored outside its own `references/` folder.

- `../iam-governance/references/access-certification.md` — Access Certification
- `../iam-governance/references/iam-governance-advanced.md` — IAM Governance Advanced Topics
- `../iam-governance/references/iam-governance-fundamentals.md` — IAM Governance Fundamentals
- `../iam-governance/references/iam-policy-as-code.md` — IAM Policy as Code
- `../iam-governance/references/identity-lifecycle.md` — Identity Lifecycle Management
- `../iam-governance/references/privileged-access-management.md` — Privileged Access Management (PAM)
- `../iam-governance/references/privileged-access.md` — Privileged Access Management (PAM)
- `../iam-governance/references/sso-federation.md` — SSO and Federation

Files in this skill

  • SKILL.md3.6 KB
  • references/admin-break-glass.md11.2 KB
  • references/enterprise-org-structure.md8.7 KB
  • references/framework-integration.md10.6 KB
  • references/rbac-advanced.md3.6 KB
  • references/rbac-fundamentals.md8 KB
  • references/rbac-migration.md11.6 KB
  • references/role-engineering.md2.4 KB
  • references/temporary-delegation-workflows.md10 KB

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.