birdcage icon indicating copy to clipboard operation
birdcage copied to clipboard

Injecting environment variables via `Command`?

Open eropple opened this issue 4 months ago • 1 comments

Hey there! I've started poking at birdcage for an open-source project I'm working on, and it's really cool. One thing that I'm running into that it doesn't do, however, is allow environment variables to be passed with the command--instead allowing either passing them by-name or passing the entire set of environment variables. For $reasons, I might need to gin one up and pass it directly to a command in my sandbox.

Before I go hacking away, I wanted to reach out and ask if there's a reason why Birdcage doesn't do this already? I am not super familiar with seccomp or seatbelt, so I didn't want to go dive down a rabbit hole if there's a technical reason it doesn't support that.

eropple avatar Aug 20 '25 21:08 eropple

I don't think there's any reason beyond it being additional work to implement while not being necessary to make environment variables work (you can still set them).

cd-work avatar Aug 21 '25 17:08 cd-work