What security and governance cover
Security decides who can do what to which system, on every request. Governance decides what the rules should be and proves they are followed. The map draws both as one path: a caller signs in, policy decides at the resource, and every decision is recorded where detection and auditors can read it.
A useful check is a question an auditor will eventually ask: who read this customer's records last month, and which rule allowed it? With this design, one query against the audit store answers it.
The shape that survives production
- Every caller is an identity. People sign in with phishing-resistant MFA, and apps, pipelines and agents use managed identities. No service holds a password or key the platform did not issue.
- Admin rights are temporary. Privileged roles are requested for a task, approved and time-boxed, and break-glass use raises an alert.
- Authorisation happens at the resource. The gateway and edge filter traffic, but each resource checks the token and applies policy itself, with row and column rules for data.
- Policy is code. Rules are versioned, reviewed and tested, and use attributes such as tenant and data label rather than an ever-growing list of groups.
- Secrets that remain live in one vault, read at run time by the workload's own identity and rotated on a schedule.
- Data carries its label. Classification at ingestion drives masking, access and encryption keys, so a copy keeps the rules of the original.
- One audit record holds it all. Sign-ins, decisions, secret reads, admin actions and agent tool calls go to an append-only store that detection runs on.
- Evidence is a query. Compliance controls point at audit data and posture scans, not at screenshots collected before an audit.
Where teams get hurt
- Access granted for a project is never removed, so people collect rights as they move between teams.
- A shared service account with a long-lived secret is used by several apps, so no log can say which one did something.
- Services trust anything that came through the gateway and skip their own checks, so one misrouted request reaches the database.
- Audit logs are stored where the administrators being audited can delete them.
- Personal data is masked in the application but not in the logs, traces or search indexes built from it.
What AI adds
An agent is a workload that acts for a user, and that changes three things on this map. Its identity must carry the user's as well as its own, so resources apply the user's rights and the audit names both. Its tool access is policy, with an allow-list per agent and approval for actions that change records or spend money. And its inputs and outputs pass guardrails, because prompts, retrieved documents and tool results can all carry instructions the user never wrote. Switch the map to the AI lens to see where each one sits.
Node by node
Callers
Workloads
Apps · agents · pipelines2 linked
Understand
Operate
- ExplainerBlast radius is a design parameter
Access control
Identity
SSO · MFA · tokens1 linked
Understand
- ExplainerYour agent should not be a superuser
Policy
Authorise each request9 linked
Understand
Implement
Decide
- ChecklistWhen to bring in a compliance review
Operate
Reference
- ReferenceOWASP Top 10 for LLM Applications
Secrets & keys
Vault · KMS · rotation1 linked
Protected estate
Resources
Apps · data · models2 linked
AI guardrails
Prompt · output checks3 linked
Data controls
Classify · mask · encrypt1 linked
Evidence and response
Audit
Who did what, when3 linked
Understand
- Architecture patternPattern: the outbox for agent actions
- ExplainerYou cannot instruct a model into data protection
Operate
Governance
Compliance
Controls · evidence2 linked
Understand
Decide
- ChecklistWhen to bring in a compliance review