Ágensjogosultságok
Az ágens műveleteit a megbízó személy jogosultságára és a kijelölt feladatra korlátozza, a szüneteltetett munka folytatásakor is.
agent-authorization
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha AI-eszközök bejelentkezett felhasználók nevében alkalmazásadatokat vagy üzleti folyamatokat kezelnek.
Miben segít neked?
- Az ágens hatáskörét a felhasználó aktuális jogaival metszi.
- A személyazonosságot szerveroldalon köti, nem modellgenerált paraméterekből veszi.
- Pontos művelettartalomhoz köti a jóváhagyást, folytatáskor újraellenőriz.
Például ezt kérheted
Akadályozd meg, hogy az ügyfélszolgálati ágens jogosulatlan felhasználónak visszatérítést hagyjon jóvá. A jóváhagyásra várás alatt vond vissza a felhasználó visszatérítési jogát. A folytatott futás utasítsa el a kifizetést a korábbi modellkérés ellenére is.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Agent Authorization
When to Use
Use when AI agents, LLM tool calls, MCP servers, or automated bots invoke application APIs, query databases, or trigger business workflows on behalf of users or workspaces.
Core Rule: Dual-Principal Intersection (Never a Confused Deputy)
An AI agent is never an all-powerful root user. When an agent runs on behalf of a human user (delegator), its effective permission is the strict intersection of two scopes:
$$\text{Effective Permission} = \text{Permissions}(\text{Delegating User}) \cap \text{Declared Scope}(\text{Agent / Tool})$$
- The Agent Cannot Exceed the User: If a
viewerorsales_repprompts an agent to "Approve quote #402 and issue a refund," the policy engine must reject the tool call because the underlying user lacksquote:approveandrefund:issue. - The User Cannot Exceed the Agent's Purpose: Even if a
workspace_ownerchats with a "Customer Support Triage Agent," that agent is restricted to its declared tool scope (ticket:read,ticket:tag) and cannot executeworkspace:deleteorbilling:exportif manipulated by prompt injection.
Four Mandatory Controls for Agentic Execution
1. Server-Bound Identity Context (Never Trust LLM Parameters for Auth)
- Never pass
userId,tenantId, orroleas LLM-generated tool arguments! - Bind
{ tenantId, delegatingUserId, agentId, runId, grantedScopes }inside the server-side execution context (On-Behalf-Oftoken /AgentExecutionContext) and inject it directly into the policy check inside every tool handler.
2. Action Classification & Human-in-the-Loop (HITL) Approval Gates
Classify every agent-callable tool into one of three risk tiers:
- Tier 1 — Read-Only (
safe_read): Scoped by the user's and tenant's read permissions + field-level redaction (sensitive fields redacted before entering the LLM prompt context!). - Tier 2 — Bounded Reversible Write (
scoped_write): Allowed within explicit numeric/rate thresholds if both user and agent scopes permit (e.g., creating adraftquote or adding a task comment). - Tier 3 — High-Impact / Irreversible / Financial / External Action (
requires_approval): Sending external emails, approving quotes/orders, mutating production configs, deleting records, or charging money must halt and create apending_approvalrequest bound to the exact tool payload hash (payload_sha256), requiring human sign-off before execution.
3. Re-Verify Permissions When Resuming Paused Agent Runs
Agent runs that pause for minutes or hours (waiting for human approval, webhook callback, or retry) must re-evaluate the delegating user's active membership, role, and resource state immediately before executing the resumed step.
4. Distinct Agent Attribution in Audit Logs
Record both actor_agent_id (run_id) and on_behalf_of_user_id on every mutation and approval event so human actions and agent-executed actions are always distinguishable.
Csomagban lévő fájlok 1
SKILL.md
A skillcsomag bemutatása
agent-authorization
agent-authorization: Egyértelmű hozzáférési szabályokat alakít ki és érvényesít a szerveren, jogosultsági forgatókönyvekkel és auditnyomokkal.
Összecsukás
agent-authorization
agent-authorization: Egyértelmű hozzáférési szabályokat alakít ki és érvényesít a szerveren, jogosultsági forgatókönyvekkel és auditnyomokkal.
A teljes skillt és a hozzá tartozó fájlokat tartalmazza (1 fájl). Az alábbi eredeti leírás rögzíti a pontos alkalmazási területét.
A skill eredeti leírása (a forrás nyelvén)
Use when enforcing Zero-Trust authorization for AI agents and automated workflows by intersecting agent capability scopes with the delegating user's live permissions and requiring human-in-the-loop approval for high-risk actions.
Telepítsd a skillt, nézd át a forrását és a megbízhatósági beállításait, majd engedélyezd a megfelelő projektben vagy ügynöknél.
Előfeltételek
- A számítógépedre telepített Orqestria.
