Hacker News new | ask | show | jobs
by ryanczak 16 days ago
Docker sandboxes support secret injection. https://docs.docker.com/reference/cli/sbx/secret/set/
4 comments

From https://docs.docker.com/reference/cli/sbx/secret/set-custom/

> Custom secrets work via a placeholder: the sandbox sees the placeholder value instead of the real secret. When the sandbox makes an outbound request to the target host, the proxy replaces the placeholder with the real secret in the request headers — the secret never enters the sandbox directly.

Did they get rid of their sign in requirement?
Still there. But openshell does something similar and has come a long way since I last tried it 6 months ago. I'm giving it another shot now and hopefully will be able to leave the docker sandboxes behind for good.
I use these exclusively now. I very very rarely run outside of an sbx. Works great.
Which sandbox do you use with local models still running fast?
I think the parent is referring specifically to Docker Sandboxes (the product) aka sbx: https://docs.docker.com/ai/sandboxes/
I've yet to dive into sandboxing agent usage, but Docker Sandboxes seems like it could potentially be the easiest way to get started with that. I'm a bit thrown off by the first prerequisite ending with "[...] and sign in to Docker"...
if you want a solution that isn't tied to a docker login, try https://github.com/superradcompany/microsandbox

And when you're ready to go down the rabbit hole, read about how it supports a whole set of mcp-tooling to enable your VM to launch other VMs with more agents in side them so your agents can ....agent

exactly, i don't know why everyone is ignoring this. It's the obvious solution to at least 80% of what most posters here are complaining about and comes built in already in multiple existing solutions.
Loading the secrets into a remote machine is still a requirement here. I do make use of docker sandboxes, but they serve different purposes imo.

Lend allows me to SSH into a machine and run commands I don’t even have installed there. That’s the other benefit here.

> Loading the secrets into a remote machine is still a requirement here

No, it explicitly isn't - see https://docs.docker.com/reference/cli/sbx/secret/

If the secret doesn’t exist on the host (or your password vault) where you’re running docker, how do you get it into docker? Even —-ref support requires the utility (op for example).