Identity, Authorization, and Least Privilege › Why the model cannot be the authorization layer

Michael BrenndoerferDecember 2, 20262 min read
Language AI HandbookAll chapters
Part 61 of 67Agentic AI and Protocol Security
Chapter 468Identity, Authorization, and Least Privilege › Why the model cannot be the authorization layer
Reading section 2 of 11 · Why the model cannot be the authorization layer · 2 minSection 2 of 11 · 2 min

Section 2 of 11 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The application receives a proposal from the model and a trusted execution context from the surrounding service. Keep them separate through dispatch. The proposal can include the requested operation and a candidate draft reference. The execution context identifies the verified caller and the task. An authorization gate should use its own resource lookup to determine which workspace owns the draft and which policy governs it.

A deterministic fixture helps show the difference. Given the same inputs and policy snapshot, it returns the same decision. That makes it possible to trace a result to a rule and to reproduce the result in a regression test.

Determinism alone says nothing about correctness. A rule can give the same wrong answer on every run, and a well-written rule can still receive stale or untrusted inputs.

Three situations show why the inputs matter.

  • A retrieved document can influence which operation the model proposes. The authorization gate still checks the operation against trusted task scope.
  • A natural-language request can mention a workspace or user. The workspace and user used in policy come from trusted application state.
  • A workload's service account may have its own authority. A request on another principal's behalf needs a delegated grant, even when that account has authority for unrelated work.

OWASP's AI Agent Security guidance describes separating proposals from execution and independently checking scope, privilege, and approval state.

Principal

A principal is an actor to which the system can assign authority. An end user and an agent workload are distinct principals in the delegated workflow. The same person may authorize several workflows, and the same workload may act for many people. A decision needs the pair that applies to the specific request.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy