authorization
Use when: design or review access control so users can only do what they are permitted to do.
来源信息
- 仓库
- kimtth/agent-skill-100-lines-or-less
- 最近来源活动
- 2026年6月26日 02:15
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 2
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- authorization
- description
- Use when: design or review access control so users can only do what they are permitted to do.
Goal: enforce permissions consistently at every trust boundary.
Use for:
- deciding who can read or change what
- choosing a model: roles, attributes, or relationships
- fixing missing or inconsistent permission checks
Workflow:
1. Define the resources, actions, and who may perform them.
2. Choose a model: RBAC, ABAC, or relationship-based (ReBAC).
3. Enforce checks server-side at every entry point.
4. Default to deny; grant explicitly.
5. Scope data queries to the caller's permissions.
6. Test allowed and forbidden paths, including escalation attempts.
Patterns:
- centralized policy checks, not scattered ad hoc ifs
- ownership and tenant scoping on every query
- least privilege for roles and service accounts
- deny-by-default with explicit allow rules
Rules:
- never trust client-side authorization
- check on the server at the data boundary, every time
- default deny; make grants explicit and auditable
- prevent IDOR by scoping queries to the authorized subject
在 GitHub 查看