r/devops • • 12h ago

Discussion Never felt comfortable with Agents

As a DevOps/SecOps engineer, I am never comfortable granting broad permissions for agents to execute actions, and I have never permitted any open-source agents (such as Nanoclaw, Astrolabe, and others) because of the fear of AI and the need to separate privacy. Is it normal for y’all ??

1 Upvotes

29 comments sorted by

44

u/Cyberbird85 12h ago

Then, don’t grant broad permissions? Least privilege principle applies here as well.

4

u/JinpaLhawang 11h ago

This is the take. Even with only read perms, you can get a lot of planning, analysis, diagnosis etc out of an agent. And then you can move up to non-destructive writes if and when you want to. It is very much about trust building.

2

u/Dobsen_Runjie 9h ago

yeah it really shouldn't be any different from scoping permissions for a regular service account.

10

u/Wide_Commission_1595 12h ago

Treat them like you would any other person who you have less than 100% trust in. Give them enough access tomdo what you want them to do, but not enough access to screw you over!

For example, I let my agents have read only access to the Aws account they deploy to, but they can only deploy via merge requests that I look at. No access to secrets etc, and private repos only

5

u/Holiday-Medicine4168 12h ago

Can’t stress the secrets part here enough. Agents should trigger jobs, not deploy things. If you have them running locally doing read only things they can use AWS profiles on you machine, if you paste in credentials then they are compromised and it’s time to rotate them. We mostly use Claude and it will yell at you if you do that and tell you the same. 99% of horror stories start with giving agents or humans overly scoped permissions so the path of least permission applies here too.

5

u/lordnacho666 12h ago

Why don't you start with read-only keys? The biggest benefit is that the agent can gather up the logs, graphs, and code changes for you. Normally you would want a person to check the thinking regardless when there's an incident.

If you want it to suggest PRs, you can just allow it up to some stage where a human has to approve it.

1

u/malik22531 12h ago

That’s what I’m already doing, but sometimes I feel like in the era of AI why I’m doing stuff by hand, why can’t just agent do this.

1

u/lordnacho666 11h ago

What is it you're already doing by hand?

1

u/malik22531 11h ago

Deployments, upgrades, admin tools, db management and more

1

u/lordnacho666 11h ago

So for things that make changes, you can use agents to line them up, but you need a human to check. The agent can help, it can't be responsible.

1

u/malik22531 11h ago

I’m doing good exactly this way, even before lining up I ask for reference docs and make sure it works with our infra architecture

1

u/Rei_Never 1h ago

Accountable***

1

u/TorrentsAreCommunism 11h ago

I give them admin permission and let them do all the work for me, while I’m chilling.

If we are to be replaced by AI, I will at least make this process more enjoyable.

2

u/malik22531 11h ago

And one day your keys are exposed on moltbook :p

1

u/TorrentsAreCommunism 10h ago

So? Not my company.

2

u/MissiveFinding6111 9h ago

agents with read-only permissions? So useful! I am able to use them to disprove hypothesis so quickly.

Agents with write permissions? That's a good way to accidentally delete your whole environment.

1

u/g-nice4liief 11h ago

Least privileges still apply. I use a devcontainer running in a microvm and even then you still have to be carefull they not try to go outside of the sandbox they're running in.

1

u/mxtchstick 11h ago

Yes this is pretty typical. Read-only access key scoped or account scoped to only what the agent needs is a sensible approach.

Agents should always be ran in a sandboxed environment, ideally a disposable VM either in the cloud on your machine (something with a separate kernel ideally, although this isn’t a silver bullet).

1

u/justrunme1 11h ago

Pretty normal, but I'd point the worry at the credentials, not the model. Give the agent its own short-lived identity instead of your user's token, start it read-only, and send writes through the same policy check and approval a human would go through. Then the worst case is whatever that role allows. The ones I'd actually keep off my laptop are agents that just inherit your shell env with every cloud cred in it.

1

u/rankinrez 11h ago

What’s the difference with the open source ones?

1

u/Spirited_Garage_8476 8h ago

It is very normal to feel hesitation especially if the agents can access informations that are sensitive. If it was me i would rather start with the limited permissions and only expand the access once my trust is with them. Do you think that the main concern is really the security or just now knowing how there actions are going to be?

1

u/CoaxVex 5h ago

I am running mine in containers. No access to ssh, k8s or cloud credentials. But they have unlimited network access, so still a work in progress.

1

u/RubSad3416 4h ago

Isolate agents with hyper specific permissions.