r/devops • u/malik22531 • 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
44
u/Cyberbird85 12h ago
Then, don’t grant broad permissions? Least privilege principle applies here as well.
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/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.
2
u/Timdotz 2h ago
Saw the headline and immediately thought of this 🤣:
https://www.youtube.com/watch?v=3Lyex2tSUyA&pp=ygUUbm8gYXNpYW5zIG5ld3Mgc3Rvcnk%3D
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/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.