rbac
Role-Based Access Control and OIDC integration skill for advanced harness engineering.
by j4flmao★ 47 GitHub stars
Install rbac in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
RBAC and OIDC Integration
Purpose
Comprehensive Role-Based Access Control with OIDC flow integration.
Core Principles
- Principle of least privilege
- Secure token validation
- Strict policy enforcement
- Auditability of access
- Separation of duties
Agent Protocol
Triggers: Access requests Input Context Required: User identity, requested resource, action Output Artifact: Access decision Response Formats:
{
"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
- Load policies
- Connect to DB
- Init cache
Phase 2: Token Validation
- Parse JWT
- Verify signature
- Check expiry
Phase 3: Role Extraction
- Get claims
- Map to roles
- Resolve hierarchy
Phase 4: Policy Evaluation
- Find matching policies
- Check conditions
- Calculate final decision
Phase 5: Audit Logging
- Format log entry
- Add context
- Write to stream
Phase 6: Response
- Format response
- Add headers
- 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
- Always validate tokens first
- Fail closed on errors
- Log all access decisions
- Cache policies for performance
- Regularly review role mappings
Reference Guides
- RBAC Fundamentals
- RBAC Advanced
- Role Engineering
- RBAC Migration
- Framework Integration
- Enterprise Org Structure
- Admin & Break-Glass Access
- Temporary Delegation Workflows
Handoff
Refer to auth skill.
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
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- references/admin-break-glass.md
- references/enterprise-org-structure.md
- references/framework-integration.md
- references/rbac-advanced.md
- references/rbac-fundamentals.md
- references/rbac-migration.md
- references/role-engineering.md
- references/temporary-delegation-workflows.md
FAQ
What does the rbac skill do?
Role-Based Access Control and OIDC integration skill for advanced harness engineering.
How do I install the rbac skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the rbac skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…