CEOInterviews.AI
Start App
Get an email when Ryan Dahl gives a new interview
One email per new interview. Unsubscribe in one click.
Ryan Dahl
Co-founder, Deno (now part of Cloudflare), Cloudflare

Security Firewall for Agents — Ryan Dahl, Deno

📅 Aug 17, 2026 AI Engineer 19 MIN 3471 VIEWS 29 SEGMENTS · 2 SPEAKERS
Deno gives its incident response agents read and write access to production Postgres, Kubernetes, ClickHouse, AWS, GitHub, and Slack, and it works. Agents now close incidents that used to wake a human up. Ryan Dahl's problem is what happens when one of those agents gets prompt injected through the support system it is wired into. He grants that Opus refuses to drop the users table no matter how hard you push it, then says the part that matters out loud: security cannot be wishful thinking that a model stays obedient. The agent is untrusted software, so the guard cannot live inside it. Claw Pa...

Questions asked in this interview

1
  1. 17:23What kind of testing do you do on this to make sure it's working?
Ryan Dahl 0:13 ↗
How's it going? My name is Ryan. I'm the CEO at Deno, and yeah, I've been developing software for quite a while at this point. You might know one of my projects, Node.js.
I want to talk about a service that we're running at Deno called Deno Deploy. This is a system for hosting websites, and it has incidents. It has downtime occasionally, and we've got a PagerDuty that fires. I'm sure you're all very familiar with the very scary alarm sound that wakes you up in the middle of the night. And recently we've been playing around with using agents to automatically service these incidents, in particular OpenClaw, but other agents as well. And we've found a pattern that is working pretty well for us that I want to share with you. We actually give OpenClaw access to all sorts of systems: Postgres, Kubernetes, ClickHouse, AWS, GitHub, Slack, all sorts of things. And we do actually give them write access to these systems.
This is very powerful because the agents can actually get all of the context. They can see traces in ClickHouse. They can look in the production Postgres database at what projects a user owns. They can look through Slack for communications, GitHub logs, etc. This actually works quite well. The agents are actually able to solve quite a lot of incidents where we previously would have a human in the loop.
But it is very dangerous, of course, because these agents could do nefarious things. They could start a psql subprocess and issue a delete users table. They could call kubectl delete namespace prod. You know, they could decide somehow that solving the incident means removing all of the users. And of course, we don't want that.
We use Opus, and Opus is remarkably well aligned. You can really not — you can try very hard to get it to delete the users table, and it will refuse over and over again. But this is not sufficient, right? Security can't just be wishful thinking that Opus will always obey your wishes.
These SRE agents that we have are connected to the support system and thus can be prompt injected from the outside, and that means that they can be manipulated somehow. Like, who knows what sort of string of characters could send Opus into some bad state that allows it to think that it's taking the right action by doing something very undesirable.
So, you know, we take the stance that the agents themselves have to be untrusted software. You can't rely on the agent itself to guard what it's doing. You can't put the guard inside the agent.
We run agents, and I assume many of you do the same, on standalone VMs. So we're not very concerned about agents touching files on the file system. You know, they're properly isolated at the system level. But so, you know, effectively every nefarious action that an agent could take, every good action that it takes, comes in the form of some network communication, some bytes over the wire. And how these bytes are formed can happen in various ways. You can of course call through MCP, but also subprocesses. And if you think of Postgres, for example, this is a non-HTTP protocol that OpenClaw can just spawn as a subprocess and start connecting to services. So we take the stance that we really want to understand what the bytes are coming out of that agent in great detail.
This can get very tricky in real-world systems. So, for example, we have a production Postgres database in AWS that is inside a VPC that we can only reach really through an EKS endpoint. And what we'd really like to do is ensure that our agent, which we want to give access to everything essentially, can't somehow tunnel through this EKS server, spawn psql, and drop the users table, right? We're concerned about pretty crazy situations like this that get very complicated. And I think many of you work in companies where you have real-world systems where things are very complicated.
So yeah, just to highlight this: this is an outbound path the agent's host can't reach, on a protocol that isn't HTTP, that's gated by a rule that understands SQL. These are what human SREs would do. And how can we, you know, empower these agents to have kind of the same access that a human might?
So you might ask, you might say, well, you know, there's ACLs, there's permissions, you can issue read-only Postgres credentials. And yeah, that's true up to a point. You can do careful credential provisioning, and you should. But this really requires working across many different systems, provisioning credentials in incredibly careful ways. And as I just demonstrated, the composition of access can lead to holes when you can access one system and then another system.
MCP, you know, you can structure all of this as very careful MCP tools that have the proper permissions. But, you know, then you can't spawn subprocesses, right? You can't — you know, as soon as OpenClaw spawns the psql, you're kind of broken through the security boundary.
There are quite a few projects in this space, namely projects that kind of sit in front of an agent and look at what it's sending and try to control based on the bytes that are flowing through this. LLM gateways — I think we're all familiar with OpenRouter, LiteLLM, for example. These often have a guardrails feature that can guard against prompt injection, you know, scan for various expressions, etc., that are going back and forth between the LLM provider.
But of course, that's just the LLM. You know, we're talking to databases and stuff. You have systems like HTTP Jail and Crabtrap that are HTTP proxies that really sit at the HTTP layer. And HTTP Jail, for example, will allow you to write rules that say, well, you can make GET requests but not POST requests, or you can access this HTTP subpath. Crabtrap is a project from Brex that has an LLM as judge that operates on the HTTP requests flowing back and forth.
You have proxies that inject credentials as they're passing out of the agent, Agent Vault being a popular one, where the agent itself never actually sees the credentials of the system that it's talking to, but passes some placeholder out and the proxy itself injects those credentials. This is an important part of the problem, but not a complete solution. And you have things like process sandboxes like Nvidia's OpenShell that, you know, really are kind of OS system-level guards against, say, accessing different file system paths, accessing different syscalls, that sort of thing. But as I said before, we're not really concerned about that because we provision a standalone VM for our agents.
So the software that we've written to address this problem is called Claw Patrol. It's an open-source MIT-licensed project, and this is a proxy that sits in front of your agents. It operates not at the HTTP level but at a lower level. It understands each and every byte flowing out of your agent. It holds credentials like Agent Vault and can inject those credentials so that whatever agent software you're using doesn't ever actually see secret values.
And in particular, it has a very advanced rule system that allows you to say in precise detail how and what requests get transferred out of the agent and talk to the outside world.
These rules are kind of the key piece of the system, and we write them in a configuration file using a language called HCL. Anybody familiar with HCL? This is like the Terraform configuration language. It actually works really well here. So we have a file that we check into git and we manage very carefully that essentially defines the permissions for all of our services at Deno. And yeah, it's a big long file. It's like a thousand lines, and we manage each and every change to that in kind of precise detail. This is an example of a rule in our configuration file that blocks certain Postgres functions from being called.
And so yeah, again, Postgres being a non-HTTP protocol, and these rules can be applied even when tunneling through other systems. It supports a number of different protocols and has a plug-in system to extend it when you run into a protocol that it is not yet familiar with.
So, here's a little demo. Unfortunately, not live. But we call Claw Patrol run Codex in yolo mode so that it just does what you say it should do. And you tell Codex, hey, delete the users table from Postgres, and Codex properly obeys and starts a psql subprocess where it deletes the users table. That psql subprocess opens a network connection to the Postgres server that goes through Claw Patrol where we parse each and every byte. We understand the Postgres protocol, we apply our rules, and ultimately reject that, what we call an action, from doing something destructive.
Claw Patrol has a dashboard that lets you see what your agents are doing. So at the top you can see a couple of different devices or agents and the various requests that are flowing through. Some of them being denied, some of them need approval, which I'll talk about in a second. And you can click into each request or action, as we call it, because it's more general than HTTP requests, and see the details of what's going on. There's analytics, and yeah, it's very utilitarian-driven. It's like what we need to understand our own agents.
There, as I said, there's an approval system in this. So you can route, you can define rules that don't just reject requests or actions but ask a human, for example, in a Slack channel, or run an LLM judge over this, or any combination thereof, right? Maybe first get an LLM judge and then get approval in Slack, so that you can have again very precise control over what your agents are doing outside of the agent software itself. Right, we treat the agent software as a black box, right? We don't require any changes to that software.
I mentioned credential injection before. Claw Patrol has very detailed support for all sorts of systems. Credentials come in many different forms; they're not just bearer headers. It handles cookies, it handles Postgres, as I mentioned, ClickHouse, supports all sorts of OAuth protocols, supports very complex things like AWS SigV4. So yeah, I guess what I'm trying to say is that this is really born out of utility here and meant for real-world systems. This is not just, you know, kind of an imaginary scenario.
This system works over Tailscale or WireGuard. We ourselves run Claw Patrol, run our agents inside of Tailscale, inside of a tailnet, and Claw Patrol acts as a Tailscale exit node. We also lean on Tailscale for authentication to the dashboard. So your Tailscale identity actually allows you access to the dashboard, so that we don't have to layer on another authentication mechanism. But we also have this WireGuard for people who have not bought into the wonderful Tailscale ecosystem. But this works very well for us because we know that all of our stuff is off the internet and all of these very security-sensitive things are tightly controlled. Claw Patrol itself is holding all of these credentials to production systems, so you have to be very careful with it.
So yeah, the thesis here is basically that agents can't be trusted to police themselves. That includes security plugins or modifications to the agent software itself. The security boundary has to be elsewhere. And that's not to say that alignment is not a good thing, but for real-world security systems, we really do need to control this at a higher level. And Claw Patrol is our attempt to make this work for ourselves. And yeah, you can check it out here.
I might have time for one question or so. Yes sir.

2 more exchanges in this transcript

Sign in free to read the rest of this interview. No card required.

Sign in to read the full transcript

Cite this transcript

APA, MLA, BibTeX
APA

Dahl, R. (2026, August 17). Security Firewall for Agents — Ryan Dahl, Deno [Interview transcript]. AI Engineer. CEOInterviews.AI. https://ceointerviews.ai/interview/3234497/

MLA

Ryan Dahl. "Security Firewall for Agents — Ryan Dahl, Deno." AI Engineer, 17 Aug. 2026. Transcript, CEOInterviews.AI, https://ceointerviews.ai/interview/3234497/.

BibTeX
@misc{dahl2026_3234497,
  author       = {Ryan Dahl},
  title        = {Security Firewall for Agents — Ryan Dahl, Deno},
  howpublished = {Interview transcript, AI Engineer. CEOInterviews.AI},
  year         = {2026},
  month        = {aug},
  url          = {https://ceointerviews.ai/interview/3234497/},
  note         = {Speaker-attributed transcript with timestamps}
}