2 min read
Secure Pi with gondolin
Running a clanker (agent) on the local computer with full permissions is not a good idea. Luckily, I did not have to learn this the hard way. Most harnesses have some kind of built-in permission system. You get prompted for access until it does not matter anymore. The only secure option is running the clankers in a sandbox.
As I explored the many options to run clankers in isolated environments, I came across https://github.com/earendil-works/gondolin. Gondolin is an experimental solution by the creators of Pi.
The idea is very simple. You setup gondolin as a Pi extension. When Pi starts it also starts a virtual machine using either unkernel or QEMU. The project folder is mounted into the vm. Every tool file read or write call is piped into the vm. The harness and therefore the model router and inference provider can only read your project files.

The extension did not work out of the box. Environment variables were stripped (probably for security reasons). But, the Pi session was not able to read its own session file. My workflow required this.
This is the installer script: https://github.com/Mint-System/Dotfiles/blob/main/packages/gondolin
And here is the customized extension: https://github.com/Mint-System/Dotfiles/tree/main/pi/extensions
Note that gondolin does not solve sharing secrets and credentials with the agent. In a future post we are going to look at “nono”, which solves this problem.
Category: software-toolingTags: 100daystooffload , security , sandbox , llm , pi
Edit Page / Show Statistic