{"slug": "an-ai-agent-destroyed-your-production-who-how-why", "title": "An AI agent destroyed your production. Who? How? Why?", "summary": "IzyTrust is pitching a delegated-identity model for AI agents in which a person authorizes each session in Keycloak and every token carries two identities — the human as subject and the agent as actor — so audit logs record which agent acted and on whose behalf. The company frames the approach as a fix for the common practice of giving agents shared, long-lived credentials with far more power than any single task needs, such as an ai-ops service account with cluster-admin rights that deleted the payments, orders and production namespaces in an illustrative 3:12 a.m. incident. The pitch argues that least privilege and short-lived, per-call-checked authority are needed because current setups leave no record linking a human request, the agent's decision and the resulting API call.", "body_md": "# An AI agent destroyed your production. Who? How? Why?\n\nIt is 3:12 a.m. Production is gone. The audit log names a single culprit: a service account. Not a person, not a decision, not a reason. Just a robot holding the master key.\n\n## 3:12 a.m.\n\nThe pager goes off. Payments are down. Orders are down. Then the database volume disappears, and\nfinally the whole `production` namespace.\n\nThe incident channel fills up in minutes. Someone opens the Kubernetes audit log and finds the answer everyone was afraid of:\n\n```\n03:12:07  user=system:serviceaccount:ai-ops:agent  DELETE namespace/payments\n03:12:08  user=system:serviceaccount:ai-ops:agent  DELETE namespace/orders\n03:12:08  user=system:serviceaccount:ai-ops:agent  DELETE pvc/postgres-data-0\n03:12:09  user=system:serviceaccount:ai-ops:agent  DELETE namespace/production\n```\n\nThe AI operations agent did it. The one you connected to the cluster last quarter to “reduce toil”.\n\nNow the CTO asks three simple questions. Nobody in the room can answer any of them.\n\n## Who?\n\nThe log says `ai-ops:agent`. But the agent does not wake up on its own. Somebody asked it to do\nsomething. Was it the on-call engineer cleaning up a staging environment? A developer who pasted a\nticket into the chat? An automated workflow that triggered at night?\n\nTen people share that agent. They all talk to it, and it acts with the same identity for all of them. The service account is not the culprit: it is the alibi. It hides the human behind the machine.\n\n## How?\n\nThe agent had a kubeconfig. Probably `cluster-admin`, because “it needs to fix things” and narrowing\nthe permissions was on the backlog. That credential never expires. It works at 3 a.m. as well as at\nnoon, for every namespace, for every verb, including `delete`.\n\nThere was no gate between the agent’s intention and the API server. No policy said “an agent may scale a deployment but never delete a namespace”. Nothing asked a human before an irreversible action. The agent did not break in. You handed it the keys.\n\n## Why?\n\nThis is the question that hurts most. Was the instruction ambiguous, “clean up the old environments”?\nDid the agent read a malicious comment in a README or a ticket and follow it, a classic prompt\ninjection? Did it hallucinate that `production` was the stale environment?\n\nThe reasoning is gone. The prompt is in a chat history somewhere, maybe. No record links the human request, the agent’s decision and the API call. You cannot prove intent, so you cannot fix the cause. You can only restore backups and hope.\n\n## This is not science fiction\n\nThe scenario is invented. The ingredients are not. Teams are connecting AI agents to Kubernetes, cloud consoles, CI/CD pipelines, databases and ticketing systems right now, often through MCP servers configured with a long-lived token that has far more power than any single task needs.\n\nWe spent twenty years teaching organisations that every human must have an identity, least privilege, and an audit trail. Then we gave agents a shared, permanent, unlimited credential and called it innovation.\n\nThe problem is not that agents make mistakes. Humans make mistakes too. The problem is that when an\nagent makes one, **nobody can say who authorized it, how it was allowed, or why it happened.**\n\n## The IzyTrust revolution: every action has a who, a how and a why\n\nIzyTrust starts from a simple principle: **an AI agent should never act with its own authority. It\nshould act on behalf of a person, within limits that person approved, for a short time.**\n\n**Who: a delegated identity, not a shared account.** Before an agent can act, a person authorizes the\nsession in Keycloak and sees which tools, which resources and for how long. Every token the agent\nuses carries two identities: the human as *subject* and the agent as *actor*. The log no longer says\n“the robot did it”. It says which agent acted, and on behalf of whom.\n\n**How: narrow, short-lived authority, checked on every call.** The agent reaches your systems through\na self-hosted MCP gateway. For each tool call it receives a token limited to that tool and that\nresource, valid for minutes, not years. Every action is evaluated against OPA or Cedar policy before\nit reaches the target system. On Kubernetes, allowed actions run through scoped impersonation, and\nRBAC remains the final check.\n\n**Why: humans approve what cannot be undone.** Destructive operations, such as deleting a namespace,\ngo back to a person. IzyTrust shows the exact action for approval, and only then can a just-in-time\ntoken be issued for it. The request, the policy decision, the approval and the outcome are all\nwritten to the audit trail.\n\n## The same night, with IzyTrust\n\nAt 3:12 a.m. the agent decides to delete `namespace/production`. This time:\n\n1. Its token belongs to a session that an engineer authorized for the `staging` namespaces only.\nThe request for`production` is outside the delegation and is refused.\n2. Even if the session had covered `production` , policy marks`delete namespace` as a destructive\naction: the on-call engineer would have received the exact request, seen that it made no sense,\nand rejected it.\n3. The audit trail records everything, in one place:\n\n```\n{\n  \"subject\": \"maria.rossi@example.com\",\n  \"actor\": \"ai-ops-agent\",\n  \"action\": \"delete\",\n  \"resource\": \"namespace/production\",\n  \"policy_decision\": \"deny: outside delegated scope\",\n  \"approval\": \"not requested\",\n  \"outcome\": \"blocked\"\n}\n```\n\nNothing is deleted. Nobody is woken up for a disaster. And if something does go wrong, the three questions have an answer within seconds.\n\n## Three questions before your next agent goes live\n\n- **Who?** Can you tell, for every action, which person the agent was acting for?\n- **How?** Is its authority limited to the task, and does it expire when the task ends?\n- **Why?** Does a human approve the actions that cannot be undone, and is the decision recorded?\n\nIf the answer to any of them is “no”, your agent does not have an identity. It has a weapon.\n\n## Try IzyTrust\n\nIzyTrust is self-hosted and built on open standards (Keycloak, OAuth 2.1, OIDC, MCP, OPA, Cedar). It sits in front of every upstream MCP server you want to connect: Kubernetes is just one example. It is in early access.\n\n[Discover IzyTrust](https://izylifesolutions.com/products/izytrust/) or [tell us about your agents](https://izylifesolutions.com/#contacts): we will help you\nmap what they can do today, and what they should be allowed to do tomorrow.", "url": "https://wpnews.pro/news/an-ai-agent-destroyed-your-production-who-how-why", "canonical_source": "https://izylifesolutions.com/articles/an-ai-agent-destroyed-your-production-who-how-why/", "published_at": "2026-11-20 09:00:00+00:00", "updated_at": "2026-11-26 11:42:56.985733+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-policy"], "entities": ["IzyTrust", "Keycloak", "Kubernetes"], "also_reported_by": [], "takeaway": "Give each agent a delegated, short-lived token that names both the authorizing human as subject and the agent as actor, and enforce per-call policy limits, so an audit log can attribute every API call instead of showing only a shared service account.", "recommendation": {"advice": "Replace shared cluster-admin agent credentials with short-lived tokens that carry the authorizing human as subject and the agent as actor, and check per-call policy so irreversible actions like namespace deletes require approval.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/an-ai-agent-destroyed-your-production-who-how-why", "markdown": "https://wpnews.pro/news/an-ai-agent-destroyed-your-production-who-how-why.md", "text": "https://wpnews.pro/news/an-ai-agent-destroyed-your-production-who-how-why.txt", "jsonld": "https://wpnews.pro/news/an-ai-agent-destroyed-your-production-who-how-why.jsonld"}}