api-authz
Skill by elastic
api-authz is an agent skill from elastic that gives guidance on Kibana API route authorization. It covers route security config, privilege naming, authzResult branching, and opting out of authorization.
Install api-authz
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/.agents/skills/api-authz ~/.claude/skills/api-authzRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/.agents/skills/api-authz ~/.gemini/antigravity-cli/skills/api-authzAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
api-authz is an agent skill published by elastic. It gives patterns for authorization on Kibana API routes. The source states that all Kibana API routes must have authorization checks, even for internal routes.
The skill shows how to declare requiredPrivileges and optional extendedPrivileges in the security option of a route. It explains the operation_subject naming convention for privileges, and how to branch handler logic with request.authzResult instead of capabilities checks. It also covers anyRequired privilege sets and the approved ways to opt out, including AuthzDisabled, AuthzOptOutReason, and a custom reason. It lists invalid opt-out reasons to flag. It is aimed at developers writing or reviewing Kibana route security.
Written from the project's SKILL.md and checked against it.
What it can do
- Route security configurationDeclares requiredPrivileges in the security option of KibanaRouteOptions.
- Privilege namingNames privileges with the operation_subject convention, using underscores only.
- authzResult branchingBranches handler logic on request.authzResult rather than capabilities checks.
- Extended privilegesSurfaces optional privilege checks in authzResult without producing a 403.
- anyRequired privilege setsGrants access if any listed privilege is held, then branches on the result.
- Authorization opt-outShows AuthzDisabled, AuthzOptOutReason, and custom reasons for opting out.
Try asking
- Configure requiredPrivileges for a new Kibana GET route
- Check whether my Kibana route branches on capabilities instead of authzResult
- Suggest a correctly named privilege for a Kibana entity read action
Good to know
- extendedPrivileges accepts only a flat list of privilege name strings, not anyRequired or allRequired sets.
- When authz is enabled, requiredPrivileges is always required, so optional privileges alone cannot protect a route.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/api-authz/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to api-authz
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
api-authz: common questions
Do internal Kibana routes need authorization checks?
The source states that authorization is not optional, even for internal routes. All API routes in Kibana must have authorization checks.
When should a route use extendedPrivileges?
Use it when one privilege gates access and another only extends what the route returns or allows. Extended privileges are checked and surfaced in authzResult but never produce a 403.
What makes an opt-out reason invalid?
The source flags generic reasons such as 'Opt out from authorization' or 'Authorization not required'. It also says to use AuthzOptOutReason.DelegateToSOClient rather than writing delegation as free text.
How do I install api-authz?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is api-authz free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is api-authz safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to api-authz?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
