5 Identity permissions and secure boundaries
Write down assets, actors, entry points, trust boundaries, and failure consequences. Assets include credentials, private text, job results, administrative access, and compute budget.
- Start with a threat model
- Authentication versus authorization
- Permissions at the operation and object level
- Secrets and rotation
- Validate more than JSON shape
- Supply chain and service privileges
- Security acceptance exercises
- Incident drill
Outcome: identify who may perform each operation and prove that rejected requests cannot cross the boundary. Prerequisites: the API and data chapters. Environment: a disposable lab with synthetic data. Reference: OWASP API Security. Write down assets, actors, entry points, trust boundaries, and failure consequences. Assets include credentials, private text, job results, administrative access, and compute budget. Actors include a legitimate tenant, another tenant, an unauthenticated caller, an operator, an upstream service, and an AI agent. Entry points include HTTP bodies, headers, webhooks, uploaded files, dependency packages, and model tool arguments. For each boundary ask: who supplies this value; who validates it; which identity authorizes the action; what is recorded; and what is the maximum possible effect?