Authority Boundaries and Confused Deputies
Show how a trusted service can accidentally substitute its authority for a caller’s and protect delegation by carrying the right resource reference.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Authentication answers only who requested the work
An export service may have permission to read many files because it serves several teams. A user’s right to call the export endpoint does not automatically include every file the service can read. Begin with the operation the user was authorized to perform, the intended resource and the reason the service can access it. The authorization decision must be grounded in those relationships.
Require delegated authority for the requested action
An export job can carry a narrow read grant for the selected file and a separate write grant for its result. The service verifies these grants before applying them rather than deciding solely from its ambient access. Avoid broad grants produced from untrusted identifiers without independent checks. Capabilities express the intended delegation. Complete mediation ensures a queued request and an immediate request result in equivalent authorization.[1][2]