{"id":200237,"date":"2026-10-09T01:00:26","date_gmt":"2026-10-09T01:00:26","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/200237\/"},"modified":"2026-10-09T01:00:26","modified_gmt":"2026-10-09T01:00:26","slug":"your-ai-agent-just-provisioned-a-resource-who-owns-it","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/200237\/","title":{"rendered":"Your AI agent just provisioned a resource. Who owns it?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">The environment has thirty-four resources, including a VPC, subnets, an RDS instance, and a load balancer that hasn\u2019t seen any traffic in weeks. The owner tag reads deploy-agent. Nobody typed that in; it was auto-populated because the identity that ran that apply doesn\u2019t have an individual name, badge, or last day.<\/p>\n<p class=\"wp-block-paragraph\">That last part is the crux of the problem. A departed employee at least leaves some kind of trail: an exit interview, a Slack history, the manager who inherited their mess. Agents leave none of that. The task finishes, the context window closes, and whatever they built keeps consuming resources like forgotten candles steadily burning up your cloud bill.<\/p>\n<p class=\"wp-block-paragraph\">\u201cThe task finishes, the context window closes, and whatever they built keeps consuming resources like forgotten candles steadily burning up your cloud bill.\u201d<\/p>\n<p class=\"wp-block-paragraph\">This is the same discovery-and-transfer challenge our last <a href=\"https:\/\/thenewstack.io\/attach-owner-cloud-resources\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">two<\/a> <a href=\"https:\/\/thenewstack.io\/reassign-cloud-resource-ownership\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">articles<\/a> addressed, but it\u2019s happening much faster and from unpredictable angles. A person\u2019s ownership goes stale after a badge cycle or reorg. An agent\u2019s goes stale the second the task is done, which in some instances could be minutes. Luckily, the fix doesn\u2019t change: it\u2019s still a query, <a href=\"https:\/\/thenewstack.io\/galileo-agent-control-open-source\/\" data-type=\"link\" data-id=\"https:\/\/thenewstack.io\/galileo-agent-control-open-source\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">a policy, and a guardrail<\/a>. The only difference is what each checks for, because you\u2019re not looking for a person this time; you\u2019re hunting service accounts.<\/p>\n<p>1 \u2013 The query that finds the breadcrumbs<\/p>\n<p class=\"wp-block-paragraph\">CloudQuery\u2019s <a href=\"https:\/\/www.cloudquery.io\/docs\/platform\/features\/asset-inventory\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">asset inventory<\/a> already tells you who owns a tagged resource. All you have to do is extend the question to ask whether the owner is a person. Cross-reference the tag against your identity directory, and anything that resolves to a role or service principal instead of a human account surfaces immediately, across every taggable resource type:<\/p>\n<p>SELECT cloud, account, resource_type, name, tags[&#8216;owner&#8217;] AS owner<br \/>\nFROM (<br \/>\n  SELECT *<br \/>\n  FROM cloud_assets<br \/>\n  ORDER BY _cq_sync_group_id DESC<br \/>\n  LIMIT 1 BY _cq_platform_id<br \/>\n)<br \/>\nWHERE tags[&#8216;owner&#8217;] != &#8221;<br \/>\n  AND (<br \/>\n       (cloud = &#8216;aws&#8217;   AND tags[&#8216;owner&#8217;] IN (SELECT role_name FROM aws_iam_roles))<br \/>\n    OR (cloud = &#8216;azure&#8217; AND tags[&#8216;owner&#8217;] IN (SELECT display_name FROM entraid_serviceprincipals))<br \/>\n    OR (cloud = &#8216;gcp&#8217;   AND tags[&#8216;owner&#8217;] NOT IN (SELECT primary_email FROM googleworkspace_users))<br \/>\n  )<br \/>\nORDER BY cloud, resource_type, name<\/p>\n<p class=\"wp-block-paragraph\">AWS and Azure both keep native records of <a href=\"https:\/\/thenewstack.io\/securing-autonomous-ai-agents\/\" data-type=\"link\" data-id=\"https:\/\/thenewstack.io\/securing-autonomous-ai-agents\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">machine identities<\/a>, so the lookup there confirms directly: this owner is a role, not a person. GCP doesn\u2019t expose the same signal at the IAM layer, the same gap the <a href=\"https:\/\/thenewstack.io\/reassign-cloud-resource-ownership\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">second piece<\/a> in this series ran into, so the check works in reverse: if the owner isn\u2019t in the company\u2019s own directory of actual employees, it isn\u2019t a person either. A hit here isn\u2019t proof anything\u2019s wrong; plenty of <a data-wpil-monitor-id=\"4131\" href=\"https:\/\/thenewstack.io\/flowai-gives-agents-a-greater-role-in-infrastructure-automation\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">automation legitimately runs infrastructure<\/a> on its own behalf; but it\u2019s a much shorter list to work through than scrolling through every resource in your cloud bill.<\/p>\n<p>2 \u2013 The policy that keeps an agent from owning itself<\/p>\n<p class=\"wp-block-paragraph\">The query finds what slipped through. The policy prevents it from happening again, and this is where the ownership problem doubles back on itself: like most orchestration platforms, <a href=\"https:\/\/docs.envzero.com\/guides\/admin-guide\/environments\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">env zero treats whoever creates an environment as its owner<\/a>. That was a sensible default when only people created environments, but that era is over.<\/p>\n<p class=\"wp-block-paragraph\">The fix is an <a href=\"https:\/\/docs.envzero.com\/guides\/policies-governance\/approval-policies\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">approval policy<\/a> that checks the owner tag itself, not whoever ran the plan. A deployment clears review only if every taggable resource names an owner, the owner looks like a person\u2019s email address, and it isn\u2019t on your list of agent identities:<\/p>\n<p>package env0<\/p>\n<p>is_deploy {<br \/>\n\tstartswith(input.deploymentRequest.type, &#8220;deploy&#8221;)<br \/>\n}<\/p>\n<p># Owner values planned on AWS\/Azure tags or GCP labels<br \/>\nowners[[rc.address, owner]] {<br \/>\n\trc := input.plan.resource_changes[_]<br \/>\n\towner := rc.change.after.tags.owner<br \/>\n}<\/p>\n<p>owners[[rc.address, owner]] {<br \/>\n\trc := input.plan.resource_changes[_]<br \/>\n\towner := rc.change.after.labels.owner<br \/>\n}<\/p>\n<p>has_owner(addr) {<br \/>\n\towners[[addr, _]]<br \/>\n}<\/p>\n<p># Resources that can carry an owner at all<br \/>\ntaggable(after) { after.tags == null }<br \/>\ntaggable(after) { is_object(after.tags) }<br \/>\ntaggable(after) { after.labels == null }<br \/>\ntaggable(after) { is_object(after.labels) }<\/p>\n<p>deny[msg] {<br \/>\n\tis_deploy<br \/>\n\tnot input.policyData.agent_identities<br \/>\n\tmsg := &#8220;policyData.agent_identities is missing, so ownership cannot be checked&#8221;<br \/>\n}<\/p>\n<p>deny[msg] {<br \/>\n\tis_deploy<br \/>\n\trc := input.plan.resource_changes[_]<br \/>\n\ttaggable(rc.change.after)<br \/>\n\tnot has_owner(rc.address)<br \/>\n\tmsg := sprintf(&#8220;%s has no owner tag&#8221;, [rc.address])<br \/>\n}<\/p>\n<p>deny[msg] {<br \/>\n\tis_deploy<br \/>\n\towners[[addr, owner]]<br \/>\n\tnot regex.match(`^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$`, owner)<br \/>\n\tmsg := sprintf(&#8220;%s: owner %s is not a person&#8217;s email address&#8221;, [addr, owner])<br \/>\n}<\/p>\n<p>deny[msg] {<br \/>\n\tis_deploy<br \/>\n\towners[[addr, owner]]<br \/>\n\tlower(owner) == lower(input.policyData.agent_identities[_])<br \/>\n\tmsg := sprintf(&#8220;%s: owner %s is an agent identity&#8221;, [addr, owner])<br \/>\n}<\/p>\n<p>allow {<br \/>\n\tcount(deny) == 0<br \/>\n}<\/p>\n<p class=\"wp-block-paragraph\">The list of agent identities is a small JSON file that env zero passes to the policy as policyData. If the file goes missing, the policy fails closed:<\/p>\n<p>{ &#8220;agent_identities&#8221;: [&#8220;deploy-agent&#8221;, &#8220;svc-agents@my-project.iam.gserviceaccount.com&#8221;] }<\/p>\n<p class=\"wp-block-paragraph\">An apply now can\u2019t clear review without naming a person, whether a person or a service account submitted it.<\/p>\n<p class=\"wp-block-paragraph\">\u201cAn apply now can\u2019t clear review without naming a person, whether a person or a service account submitted it.\u201d<\/p>\n<p class=\"wp-block-paragraph\">The policy is only as strong as the key behind it. env zero <a href=\"https:\/\/docs.envzero.com\/guides\/admin-guide\/user-role-and-team-management\/api-keys\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">API keys default to the Admin role<\/a>, and TTL limits don\u2019t apply to admins, so give each agent a User-type key on its own team, with a role scoped to the one environment it works in. A <a href=\"https:\/\/docs.envzero.com\/guides\/admin-guide\/user-role-and-team-management\/default-roles\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">planner role<\/a> turns every apply into a person\u2019s approval, and a personal key is the wrong tool because it carries its owner\u2019s permissions. env zero\u2019s <a href=\"https:\/\/www.envzero.com\/blog\/announcing-the-env-zero-agentic-experience-point-your-coding-agent-at-your-infrastructure\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">agent CLI<\/a> authenticates the same way, as a scoped identity per agent, never a shared token.<\/p>\n<p>3 \u2013 Nothing should live forever<\/p>\n<p class=\"wp-block-paragraph\">The query and policy catch new runs, but neither helps with what agents have already built and abandoned, because there\u2019s no last-day equivalent to trigger a review. For those, we have to assign a last day. env zero\u2019s <a href=\"https:\/\/docs.envzero.com\/guides\/policies-governance\/policy-ttl\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">environment TTL<\/a> automatically destroys anything that outlives its assigned lifespan, warning the environment\u2019s creator three times first: two days out, two hours out, and thirty minutes out. That works when the creator is a person who regularly checks their inbox. It does nothing when the creator is a deploy-agent, because they don\u2019t have inboxes.<\/p>\n<p class=\"wp-block-paragraph\">So don\u2019t let the agent be the creator. A person creates the environment and sets its TTL, and the agent deploys into it. The warnings land with someone who can act on them, and TTL policy limits still cap what a non-admin agent can set.<\/p>\n<p class=\"wp-block-paragraph\">\u201cBuild first, claim later, and if it goes unclaimed, it won\u2019t exist long enough to matter.\u201d<\/p>\n<p class=\"wp-block-paragraph\">Some platforms have already made this the new default: <a href=\"https:\/\/axiom.co\/docs\/console\/intelligence\/agent-created-orgs\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">Axiom lets an agent spin up a fully working account with one unauthenticated request,<\/a> then deletes the whole thing automatically if nobody claims it within twenty-four hours. Build first, claim later, and if it goes unclaimed, it won\u2019t exist long enough to matter.<\/p>\n<p>Why this keeps happening<\/p>\n<p class=\"wp-block-paragraph\">In the <a href=\"https:\/\/thenewstack.io\/attach-owner-cloud-resources\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">first<\/a> <a href=\"https:\/\/thenewstack.io\/reassign-cloud-resource-ownership\/\" class=\"local-link\" rel=\"nofollow noopener\" target=\"_blank\">two<\/a> chapters of this trilogy, the main driver was turnover: people leave or change roles every few years, and nobody updates the ownership tags. Agents don\u2019t turn over at that pace; they multiply at a rate that makes it look practically glacial. <a href=\"https:\/\/gravitee.io\/state-of-ai-agent-security\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">Gravitee\u2019s 2026 survey of AI agent security<\/a> found that average enterprise agent counts roughly doubled in just four months, between December 2025 and April 2026, with over a third of organizations already running over a hundred.<\/p>\n<p class=\"wp-block-paragraph\">\u201cThey multiply at a rate that makes it look practically glacial.\u201d<\/p>\n<p class=\"wp-block-paragraph\">How many people would need to be on the review team to keep up with that? <a href=\"https:\/\/larridin.com\/blog\/ai-agent-governance-enterprise\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">Larridin\u2019s scans of enterprise environments<\/a> found forty-seven agents, on average, running with no assigned owner at all. Not because someone decided they shouldn\u2019t have one, but because no one assigned ownership when they were created. <a href=\"https:\/\/mstone.ai\/blog\/ai-agent-sprawl-ownership\/\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">A separate industry analysis citing the World Economic Forum<\/a> puts the number even higher: with over half of organizations reporting no clear ownership model for AI identities of any kind.<\/p>\n<p class=\"wp-block-paragraph\">The audit trail doesn\u2019t help much here, either. When every agent authenticates through the same shared service account, the logs can confirm a resource was created, but <a href=\"https:\/\/www.qovery.com\/blog\/scoped-policy-controlled-cloud-access-for-ai-agents#why-is-giving-an-ai-agent-broad-cloud-credentials-so-dangerous-in-2026\" class=\"ext-link\" rel=\"external  nofollow noopener\" onclick=\"this.target=&#039;_blank&#039;;\" target=\"_blank\">they can\u2019t say which run created it, from which prompt, or on whose behalf;<\/a> all information the owner tag was supposed to supply in the first place.<\/p>\n<p>A resource needs a named owner<\/p>\n<p class=\"wp-block-paragraph\">Nothing in this series argues that people or agents should stop leaving things behind; that\u2019s simply the present reality. We\u2019re advocating that the things left behind have a name attached the moment they\u2019re created, not six months later during a cost review or security audit. A person\u2019s departure usually gets announced or noticed; an agent\u2019s doesn\u2019t; so the query, the policy, and the TTL clock have to run autonomously.\u00a0<\/p>\n<p class=\"wp-block-paragraph\">Whether something was created by a person or a prompt, it\u2019ll keep leeching resources until someone catches it; and the longer it goes unnoticed, the higher the bill will be when it comes due.<\/p>\n<p>\t<a class=\"row youtube-subscribe-block\" href=\"https:\/\/youtube.com\/thenewstack?sub_confirmation=1\" target=\"_blank\" rel=\"nofollow noopener\"><\/p>\n<p>\n\t\t\t\tYOUTUBE.COM\/THENEWSTACK\n\t\t\t<\/p>\n<p>\n\t\t\t\tTech moves fast, don&#8217;t miss an episode. Subscribe to our YouTube<br \/>\n\t\t\t\tchannel to stream all our podcasts, interviews, demos, and more.\n\t\t\t<\/p>\n<p>\t\t\t\tSUBSCRIBE<\/p>\n<p>\t<\/a><\/p>\n<p>    Group<br \/>\n    Created with Sketch.<\/p>\n<p>\t\t<a href=\"https:\/\/thenewstack.io\/author\/zeen-rachidi\/\" class=\"author-more-link\" rel=\"nofollow noopener\" target=\"_blank\"><\/p>\n<p>\t\t\t\t\t<img decoding=\"async\" class=\"post-author-avatar\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/07\/0a9a86e3-cropped-03077771-zrachidi2-600x600.jpg\"\/><\/p>\n<p>\n\t\t\t\t\t\t\tZeen is a designer and builder that&#8217;s been blessed to live and learn on three continents. He likes problem-solving, being helpful, and making useful things. He got his BSc in Computer Science, but got bored babysitting servers, so he went&#8230;\t\t\t\t\t\t<\/p>\n<p>\t\t\t\t\t\tRead more from Zeen Rachidi\t\t\t\t\t\t<\/p>\n<p>\t\t<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"The environment has thirty-four resources, including a VPC, subnets, an RDS instance, and a load balancer that hasn\u2019t&hellip;\n","protected":false},"author":2,"featured_media":200238,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[405,7537,56027,12100],"class_list":["post-200237","post","type-post","status-publish","format-standard","has-post-thumbnail","category-agentic-ai","tag-ai-agents","tag-artificial-intelligence-agents","tag-env-zero","tag-post-contributed"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/200237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=200237"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/200237\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/200238"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=200237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=200237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=200237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}