Repository navigation
Replies: 1 comment
|
Quick update - I built it and it's running on Railway as normal services (server, workspace, browser, Postgres), no VM and no Docker host. What's in it, on top of #731:
What I've checked on Railway:
And the honest bit - from the workspace, cloud metadata is blocked by Railway, but Postgres and the server are reachable on the private network. That's the firewall trade-off I mentioned above, and the docs call it out. Not done yet: lint, typecheck and the docs build (my laptop ran out of disk for the full install 😅). Happy to push the branch somewhere you can look at before I open a PR - just let me know if you'd prefer to wait for #731 first. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey Nod team,
I tried to get Nod running on Railway and hit a wall - the server talks to the workspace and browser with
docker exec, and platforms like Railway, Render or Fly.io don't give you a Docker daemon, shared volumes orNET_ADMIN.Railway Sandboxes (VMs) do work. I got the full stack up with one tweak - the workspace firewall failed because the kernel has no iptables
REJECTtarget, and swapping toDROPfixed it (happy to raise that as a separate issue). Problem is VM pricing, roughly $100/month idle vs $15-25 as normal services.What I'd like to build, on top of #731:
NOD_RUNTIME=remoteas a third option next todockerandkubernetessetpriv, andnode /app/bridge.mjs), streams stdin/stdout and kills the process group if the connection dropskubectl exec, reusingrunSupervisedCommandand the bridge protocol as they areFrom what I can see the server doesn't need a shared volume -
writeArtifactandreadArtifactalready go through the command channel, and the local workspace path is only used to build paths and create an empty folder. Please correct me if I've missed something.It isn't Railway specific either, anything with private networking between services could use it. I'd publish a Railway template alongside.
The trade-off: the workspace firewall can't run on these platforms, so the workspace can reach public addresses and other services on the private network. The relay secret and the database password still protect those, but it is weaker isolation than Compose. The docs would say that plainly and it stays opt-in. Nothing changes in approvals, the trust check, Vault, sign-in or owner isolation.
A few questions before I open a PR:
Happy to build it first and post Railway test results here.
Cheers,
Sami
All reactions