协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
rbac【开发与工程】Role-Based Access Control and OIDC integration skill for advanced harness engineering.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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:
Comprehensive Role-Based Access Control with OIDC flow integration.
Triggers: Access requests Input Context Required: User identity, requested resource, action Output Artifact: Access decision Response Formats:
{
"allowed": true,
"reason": "Role has permission"
}
[Request] -> [Check Token] -> [Extract Roles] -> [Evaluate Policy] -> [Decision]
Client -> API Gateway -> RBAC Service -> Policy DB
|
v
OIDC Provider
Phase 1: Initialization
Phase 2: Token Validation
Phase 3: Role Extraction
Phase 4: Policy Evaluation
Phase 5: Audit Logging
Phase 6: Response
| 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 |
Request -> Valid Token -> Role Admin -> Allow Action
Refer to auth skill.