endpoint-authorization
Use when building or reviewing any HTTP/event endpoint. The checklist + Fuze auth architecture for authN-middleware coverage, object/field-level authorization…
от FuzeOne★ 18 звёзд на GitHub
Установить endpoint-authorization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
endpoint-authorization
Per governance/architecture-guidelines.md. Reference: FuzeFront backend/src/middleware/permissions.ts.
Checklist (every endpoint)
- AuthN — behind verified auth middleware (
authenticate/Depends(get_current_user)/ NextAuth). No public-by-default. - Object-level authz (BOLA/IDOR) — before returning/mutating a resource fetched by id, authorize the specific object:
await permit.check(user, action, resource, ctx)and/orrequireOwnership(getOwnerId). NeverfindById(req.params.id)without an ownership/permission gate. - Field-level authz (BOPLA) — set only an explicit allow-list of fields on writes (no raw-body mass-assignment); project only entitled fields on reads.
- Input validation — schema (Zod/pydantic/Joi) on params + body; reject unknown fields.
Patterns
- Express:
router.get('/x/:id', authenticate, requirePermission({action:'read',resource:'x'}), handler)orrequireOwnership(req => getXOwner(req.params.id)). - FastAPI:
@router.get('/x/{id}')+Depends(get_current_user); in-handlerpermit.check(user,'read',f'x:{id}'); pydantic body models. - Use the Permit.io PDP (offline locally) for policy; reserve raw role-
ifs for trivial cases.
How to detect BOLA in review/CI
Grep/Semgrep for resource-by-id access (findById, findOne({_id, where({ id, get(id)) in a handler with no nearby permit.check/requireOwnership/ownership filter → flag. gate-authz automates this; adjudicate logic-level cases by tracing the owner check.
Fixing a finding
Add the missing middleware/permit.check/requireOwnership/schema; add a test that a non-owner gets 403 and an owner 200. Hand implementation to backend-engineer.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл endpoint-authorization?
Use when building or reviewing any HTTP/event endpoint. The checklist + Fuze auth architecture for authN-middleware coverage, object/field-level authorization (BOLA/BOPLA mitigation), and input validation — and how to add requireOwnership / permit.check / schema validation. Surfaced by gate-authz (advisory, never blocks); enforced by gate-platform-auth; owned by appsec-reviewer.
Как установить скилл endpoint-authorization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл endpoint-authorization запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…