We added a buildpack that will install coding agents in Renku sessions. However we have no ability to sandbox them.
The problems we want to protect users against are:
6 weeks
The idea we discussed in an earlier pitch is to separate the session and where the agent is running in separate containers. The user can access the container via a tmux session. The socket for tmux can be shared between the session and the agent container.
The container that runs the agent is much more restricted:
A first implementation of this can just apply the limitations in the same user container. Then the user would be required to pause, modify and resume the session in order to remove the agent and remove the limitations that come from sandboxing. This makes it so that we donβt have to run 2 different containers in the same session.
Potential sandbox image we could use: https://github.com/agent-infra/sandbox https://agent-sandbox.sigs.k8s.io/docs/getting_started/overview/