Designing with Least Privilege

Decompose a workflow into permissions with narrow recipients, scopes, and lifetimes so intermediate components need only the authority they exercise.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Describe the operation rather than granting a broad role
  2. Treat a permission as part of a state transition

Describe the operation rather than granting a broad role

Consider a worker that reads one input object, creates a derived image and writes one output object. Its job does not require listing every object or deleting unrelated outputs. Express scope by resource identifiers and permitted actions, then enforce that scope independently of identifiers supplied by clients. Separate reading and writing authority where the data system supports it.

Treat a permission as part of a state transition

A temporary grant has an issuer, recipient, allowed operation and end condition. Restart, retries and job cancellation need rules for reissuing or revoking it. A long-lived ambient credential can silently expand the worker’s duties beyond that workflow. Grant lifetime is distinct from logs proving how a grant was used. Capabilities package bounded rights as delegated references. Confused deputies explain why using a service’s own broader rights can be unsafe even if its caller is authenticated.[1][2]

References

  1. Jerome H. Saltzer and Michael D. Schroeder, The Protection of Information in Computer Systems ↩
  2. NIST, Secure Software Development Framework ↩