

AI agents are showing up in DevOps pipelines. They write code, run deployments, query databases, and restart services. That is genuinely useful. The problem is how most teams are granting them access to do it.
The common approach is the lazy approach: mount a developer’s SSH keys into the agent’s environment and let it connect to whatever it needs. It is fast to set up. It is a security nightmare.
Why Standing Credentials Are the Wrong Answer
When a human developer gets SSH access to a production server, there is a person attached to that action. If something goes wrong, you know who was logged in. If the account is compromised, you lock it, rotate the key, and investigate.
An AI agent with a developer’s private key is a different situation entirely. The agent doesn’t have a job title or a manager. It has credentials that are probably scoped too broadly, with no expiration, and potentially shared across multiple use cases. When something goes wrong, you have no clean audit trail tying the agent’s actions back to whoever authorized them.
This is not a theoretical risk. As more companies add AI agents to their infrastructure pipelines, the attack surface grows. A compromised agent with broad SSH access can do an enormous amount of damage before anyone notices. The 2026 State of AI Security report found that 68% of organizations running AI agents in production had no mechanism to revoke agent credentials separately from the humans whose identities they shared.
The Better Model: Delegated Identity
Teleport’s field CTO Boris Kurktchiev put it plainly: agents should start without access, request only what a task needs, and leave an audit trail that links every action back to the person who authorized the work.
That is delegated identity. The agent doesn’t inherit anyone’s access level. When it needs to do something specific, it gets a short-lived certificate scoped exactly to that task. When the task is done, the certificate expires. Nothing lingers.
The practical implementation runs agents in isolated environments with no access to the host system. Every SSH session, database query, and Kubernetes action gets logged and can be risk-scored. If an agent goes sideways, you know exactly what it touched and who set it loose.
This Is the Standard Your Team Should Set
The principle here isn’t tool-specific. It’s least privilege, applied to AI. You would not give an intern the keys to your production database on day one. You should not give an AI agent that level of access either, regardless of how capable it seems.
The practical checklist is short. Never give an agent standing credentials. Issue short-lived, task-scoped certificates. Run agents in isolated environments. Log everything. Make sure every agent action can be traced back to a human decision. That last one matters most when you’re explaining an incident to a client.
As AI agents take on more operational roles, this kind of access control becomes non-negotiable. The teams treating AI security as an afterthought will experience the incident that teaches them otherwise. Build the controls into your pipeline now, before that incident forces your hand.
Want to explore how securing your AI agents in DevOps could protect your business? Let’s talk.

