AI Infrastructure

How to Set Up AI Agent Governance for Infrastructure | Dimitri Vlachos, Spacelift | TFiR

0

Governance and automation built around infrastructure as code mostly stop the moment you hit apply. What comes after, including alerts, access requests and incident response, often runs on scripts and cron jobs that nobody can see. Now AI agents want to deploy and change infrastructure in the same space, and teams struggle to tell who an agent acted as, what it did and why a run failed.

In this interview on TFiR, Dimitri Vlachos, CMO at Spacelift, walks through how to expose governed workflows to AI agents, what teams can see after a failure, and how OpenTofu run visibility explains slow or failed runs.

Guest: Dimitri Vlachos, CMO at Spacelift
Show: General/Announcement/News
LinkedIn: Dimitri Vlachos
Watch the discussion on YouTube

Here is what every platform engineer needs to know.

Technical Deep Dive

Q: How do you set up governance for AI agents that change production infrastructure?

Dimitri Vlachos, CMO at Spacelift, says governance has to cover two phases: AI-written infrastructure code that multiplies demand on platform teams, and agents that deploy or change infrastructure directly. Teams need policy and governance so they can go fast while staying in control, plus answers on agent context, best practices, auditing and whether each agent has its own trackable identity instead of a person’s ID. Spacelift Flows targets the rest of the work, since deployment is probably 20% of a platform team’s time and the remainder is long-term maintenance that often runs on scripts nobody has inventoried.

“We like to look at it this way: 20% of a platform team’s time is probably spent on deployment. The rest is spent on long-term maintenance.” Dimitri Vlachos, CMO, Spacelift

Q: What can a platform team see after an AI agent change goes wrong?

Vlachos explains that Flows is a completely event-based platform: events start workflows or fire after something has been triggered, so the full path of everything that happened is logged. If an agent operation fails, it stops at that point, the team can see why, go back a step and replay it. That gives complete visibility into what an agent did and where an error occurred.

“So you have complete visibility into what an agent did and, if there’s an error, where the error occurred.” Dimitri Vlachos, CMO, Spacelift

Q: Who decides which tools an AI agent can reach, and how much control does an MCP server give?

Vlachos describes the MCP server as the way into what the product calls a flow. A platform engineer or admin controls the full rights and breadth of what a flow can do, and exposing it over MCP gives an agent access to that flow. Teams can run many agents and allow only certain ones to reach a given flow, each with its own permissions and identity.

“You might have many different agents. You don’t want them all to be able to access this flow or this particular use case in your infrastructure. Only certain ones should have access.” Dimitri Vlachos, CMO, Spacelift

Q: How can an AI agent act on infrastructure without borrowing a person’s credentials?

Vlachos says teams build a workflow for a specific purpose, such as deploying into production or a given type of infrastructure, and Spacelift can automatically expose that flow as an MCP server. The agent gets access only to that path, the credentials the flow can use are controlled, and everything in a flow is auditable, with the ability to rewind and replay. The result is a set of paths the team chooses to allow, with agents coming in only on those paths.

“So it’s basically about creating the paths you want to allow agents to use and then allowing agents to access those paths.” Dimitri Vlachos, CMO, Spacelift

Q: How do you find out why an OpenTofu run is slow or fails?

Vlachos says long, failed runs are painful because external dependencies such as providers, libraries and external systems hide whether the fault is your code or a provider’s, and restarting with debugging is expensive. OpenTofu built visibility into the run itself using OpenTelemetry, whose open source collectors carry observability and audit information, so teams can see time spent in third parties, providers and every step. Spacelift has built this in, so OpenTofu stacks get a performance breakdown of each run, as described in the Run Observability documentation.

“You do a run, it takes forever, and it fails. You have no visibility into whether it was my code or the provider’s code. Where is the problem?” Dimitri Vlachos, CMO, Spacelift

Q: How do teams move agentic AI from experimentation to production without losing control?

Vlachos says adoption is moving very fast, from LLMs helping write code to agents doing the work, which is both exciting and scary. Platform teams are held accountable and under pressure to go fast, and they are often judged by whether development complains. Spacelift’s role, he says, is to be their backbone so policy and governance can be put in place in a way that speeds teams up and is easy to do.

“Software historically has been about helping you organize the work. And now AI is really about doing the work.” Dimitri Vlachos, CMO, Spacelift

Resources & Documentation

  • Spacelift Flows, workflow automation in the Spacelift platform
  • Run Observability, documentation for the run performance breakdown for OpenTofu stacks in Spacelift
  • OpenTofu, the open source infrastructure as code tool that introduced run visibility
  • OpenTelemetry, open source collectors for observability and audit information

***

👇 Click to Read Full Raw Transcript

Swapnil Bhartiya: As we all know, today we are all living in an AI-driven world, and AI-assisted development is pushing more infrastructure into production, and it is doing it faster, which is also creating a lot of problems for the team. The automation and governance which is built around infrastructure as code mostly stop at the moment you hit apply. What comes after, including alerts, access requests, And incident responses often run on scripts and cron jobs that nobody can see. Now AI agents are being asked to work in the same space while platform teams still struggle to see why a single inference run was slow or why it failed. To talk about what happens after deployment, I am joined by once again Dimitri Vlachos, CMO of Spacelift. First of all, Dimitri, it’s great to have you on the show.

Dimitri Vlachos: Yeah, great to see you again.

Swapnil Bhartiya: I think almost every discussion here is about AI. Everything is about agentic AI. And if you look at Spacelift, you folks are known as infrastructure as code platform. Sure. So what I want to understand from you is that how is Spacelift looking at agents, AI, agentic, of course agentic AI, and of course your flows? How does it all flow into the—

Dimitri Vlachos: So I think there’s a couple of ways, just if you think about it. So there’s certainly agentic where agents coming into your infrastructure and wanting to make changes. And we’ll talk about that. I think the first wave we’ve really seen that started last year certainly was just the amount of code, whether it’s application code that developers are writing and then they need infrastructure to deploy that, or whether it’s writing actual Terraform or IaC with agents or with, forget agents for a sec, just with an LLM to help you, that was a huge increase in the bandwidth or the velocity and there’s the amount of what was being asked on the platform team or DevOps team. So that was like phase 1 that we saw a lot last year. And we’ve seen a big uptick in people wanting to use a platform like Spacelift to how do you allow infrastructure to be written, infrastructure code to be written by AI, but then have the ability to go fast as a platform team, but actually control it with policy, with governance so that you still, you know, because when that breaks, it’s your butt on the line, right? So that was the phase one that we saw. And we’ve had a lot of success helping companies deal with that increase in demand. The next phase we’re starting to see is, hey, now I want to let, you know, agents come in and deploy stuff or Or change stuff or do things within my infrastructure? And there’s a couple interesting pieces there. One is, do they have the context and really understand your infrastructure? Do they know what best practices are for your infrastructure too? What do they— how do you audit them? What do they look like? Do they look like, oh, I’m gonna use Swapnil’s ID because you’re deploying the agent? Or do they have their own kind of actual identity that you can then track what agent was doing what for what? Yeah. These are some of the challenges we’re seeing DevOps and platform teams struggle with. And so we’ve done a number of things to help solve that. We talked a little about the increased pressure of code being developed by LLMs, which really I think speaks to the strength of IaC orchestration in general and really bringing that to bear at scale. And so we’ve just released a couple weeks ago something called Flows, because when you look at basically As you mentioned in the opening here, deployment is one piece, right? We like to look at it as like 20% of a platform team’s time is probably deployment. The rest is long-term maintenance. And when you step back and look, what’s the automation they’re doing? It’s not very organized. I like to think of it as it’s not very productized. There’s scripts, you don’t know who wrote them, you don’t know what they’re doing. You don’t have an inventory of what they are. So we wanted to solve that problem. That’s what Flows does.

Swapnil Bhartiya: Now these days, if I’m not wrong, a lot of platform teams are being asked to let AI agents touch the production. How does Spacelift Flows let an agent act on infrastructure without, of course, borrowing a person’s credential and also make sure that you are not doing what you’re not supposed to do?

Dimitri Vlachos: So with Flows, you can build paths, you know, flows, workflows and then expose them to agents. So you can say, hey, here’s, I want to have a workflow that allows you to deploy into production or this type of infrastructure. And then you build that and we can automatically expose a flow as an MCP server. So the agent now can come in, have access, and you’re controlling what they can do. You have the credentials controlled of what that flow can do. You have the auditability. So everything you do in a flow, is completely auditable. You can see what happened, you can rewind it, you can replay it. So it’s basically producing the paths you want to allow agents to do and then allowing agents to come into those paths. That’s really what we’re doing.

Swapnil Bhartiya: Perfect, thank you. Now another point is that if we just let agents do whatever they do, and let’s not assume a worst-case scenario, let’s say the most expected scenario, which is that, you know, Something may go wrong, some changes may go wrong. What can the platform team see afterwards? When do you see it and how does Flows allow them into that visibility?

Dimitri Vlachos: So Flows is a completely event-based platform, meaning everything that’s happening, events are triggered. Events can be triggered to start something or events can happen after something’s been triggered. And so you’re able to see the full path of everything that’s happened. You have a full log of it. You have the ability to, if something breaks, like let’s say for example, an agent comes in, it’s trying to do an operation and something fails, it’ll stop right there. You can see why it stopped. You can go back a step, you can replay. So it’s fully, I like to think of it as, you know, it’s, you can see what’s gonna happen. You can see what happened and it’s all fully logged. So you have complete visibility into what an agent did. And if there’s an error, where the error occurred.

Swapnil Bhartiya: Who decides which tools an agent can reach and how do you define which action would need human approval versus agents can work autonomously? How much control MCP server gives to teams?

Dimitri Vlachos: So think of the MCP server as just the way to get into what we call a flow in the product. And you as a platform engineer or as an admin, you can control the full rights and the breadth of what a flow can do. And then the MCP aspect of it just says, hey, you can also expose this to an agent so that they can come and have access to that flow. So you have complete control over what they can do and what they cannot do and what permissions they have and what identity they have to have You know, you might have many different agents. You don’t want them all to be able to access this flow or this particular use case in your infrastructure, only certain ones.

Swapnil Bhartiya: Now I wanna change the topic a bit and let’s talk about OpenTofu. Of course, the whole Run Observability, you know, talk a bit about Run Observability. And I think it’s now built into Spacelift itself.

Dimitri Vlachos: Yeah, so there’s 2 aspects to it.

Swapnil Bhartiya: Yeah, yeah. So let’s talk about Run Observability, your work on OpenTofu, and the whole integration.

Dimitri Vlachos: So if you step back and the OpenTofu team, they’re really looking at one of the areas that has been really quite painful for platform teams is you do a run, and when you do a run, whether it’s to deploy a plan, there’s a lot of external dependencies that can happen. You’re loading a provider or you’re loading different libraries or accessing external systems. Yeah. A run can take, you know, it can take a long time and you do a run, it takes forever, it fails, and you have no visibility into, was it my code? Was it the code of the provider? Like, where is the problem? And that’s been a real problem for, you know, because then it fails, you have to restart it with debugging, which is very expensive. And so what OpenTofu has done is built visibility right into the run. So when you have a run, you can see what third parties, how much time it took in third parties, how much time it took in providers, how much, Every single step. And we all know, you know, there’s been different reliability issues with third parties, with some core ones in the industry. This allows you to see into that. So OpenTofu built that in. It uses OTel. So it’s part of the, you know, just open source collectors for observability information and audit information. And so what we’ve done is in Spacelift, we’ve built that in. So when you run with OpenTofu stacks, you get that visibility of where everything, the breakdown of analysis of the performance of a run built into Spacelift. That’s what we’ve done. So it came out first in OpenTofu, and now we’re leveraging it in our product.

Swapnil Bhartiya: We talked about flows, OpenTofu, Run Observability, and these are some of the critical problems that organizations are facing today. Before we close, if I ask you that, if, I mean, you have been in this space for a long time and we have seen this journey When Kubernetes came out, it was just, you know, and then we started talking, hey, now it’s in production, you know? So now after that, things get out of control because, you know, the things, you know, competency. So same thing is happening with AI, agentic AI these days, you know? It was just testing, ChatGPT, chatbots. Now it is getting into production. Now it is making decisions on its own. So how do you draw a parallel where sometimes people, you know, forget the— Docker, remember the early days of Docker? The same. It’s like fashion. We are going through the same cycle again and again. Yeah. So when you look at agentic AI, the pace of innovation progress is happening versus other technologies. What are your thoughts and what role you feel, or what is the role of a company like Spacelift in this space to bridge that gap of production versus just experimentation?

Dimitri Vlachos: I think there’s a couple of pieces there. One, I do think it’s happening very fast. I think a lot of the early disruption was very much in development on the LLM side, helping you code. And now As you’re saying, as that gets more automated around making those decisions, you know, I heard a good analogy is someone says, you know, software historically has been about helping you organize the work. And now AI is really about doing the work, right? And so I think we’re starting to see agents wanting to do work. And so I think there’s— I think it’s— Anyone you ever talk to, it’s exciting. It’s also scary, right? And I think platform teams, they’re the ones who are held accountable a lot. So there’s a lot of pressure to go fast. When you talk to platform teams, how you’re really judged a lot of times is development complaining, which is not a very systematic way, but that’s the reality where they live. So I think for Spacelift, you know, how do we help push platform engineering teams to use this technology, but also make sure we’re there to be their backbone of, when you really need to put policies and governance in place, you can do it in a way that actually speeds you up, but is easy to do. Like, that’s really where I see us helping push and provide that control that people need.

Swapnil Bhartiya: That was a great summary and sum up. So thank you so much, Dimitri, once again. And as usual, I would love to have you back on the show. Thank you so much.

Dimitri Vlachos: Me too. Thank you, sir.

Why AI Inference Latency Compounds Across Requests | Danielle Cook, Akamai | TFiR

Previous article