R
Railway14mo ago
hitesh

running nsjail inside railway.

I wish to sandbox a script based on a javascript runtime. It works fine on docker but on railway gives a set of permission issues. Any hints?
25 Replies
Percy
Percy14mo ago
Project ID: 98e76ea6-19e8-422c-813b-d262b3a47e33
Brody
Brody14mo ago
are you building with a dockerfile?
hitesh
hiteshOP14mo ago
yes because I need a few binaries.
Brody
Brody14mo ago
and are you able to build the dockerfile locally and run the image and have your app work fine?
hitesh
hiteshOP14mo ago
yes
Brody
Brody14mo ago
then it's simply a case of railway does not start the image with significant privileges
hitesh
hiteshOP14mo ago
ya, how do I fix this? --privileged?
Brody
Brody14mo ago
you can't modify the way railway runs the built image
hitesh
hiteshOP14mo ago
I see any alternative path comes to your mind? Should I Just reach to railway suppport?
Brody
Brody14mo ago
the hobby plan only has community support available
hitesh
hiteshOP14mo ago
I am on pro
Brody
Brody14mo ago
fair enough I can't see railway changing this anyway, the images are not started privileged for a good reason
hitesh
hiteshOP14mo ago
ya
Brody
Brody14mo ago
a vps is more fitting of this usecase in my opinion railway is great for a lot of things, but it will never be a perfect fit for every usecase under the sun
hitesh
hiteshOP14mo ago
I am going to create a small repo and try to run bun or deno as a minimal server. just to be sure. just to be sure that its not me.
hitesh
hiteshOP14mo ago
GitHub
hiteshjoshi/nsjail_railway
Contribute to hiteshjoshi/nsjail_railway development by creating an account on GitHub.
hitesh
hiteshOP14mo ago
Out of context Qs: but is there any official place for railway bouty? I want to seek help from outside like that
Brody
Brody14mo ago
what do you mean seek help from outside? outside of what? what kind of help?
hitesh
hiteshOP14mo ago
I mean, I want to start bounty on helps like setup railway with any sandboxing library that basically restricts mounts. And propose is to the community, and see if any superman can pick it up and help me.
Brody
Brody14mo ago
if railway isn't starting the images with significant privileges then I don't see how this can be achieved on railway
hitesh
hiteshOP14mo ago
ya but someone can just not use nsjail and something else to help achieve it? I think somehow its nsjail specific error I mean its not error. Its quite right. But there me something which just does micro of what nsjail is , and help me solve. VPS is just too much efforts.
Brody
Brody14mo ago
I agree vps are a lot of effort, but sometimes the usecase justifies it
hitesh
hiteshOP14mo ago
have reached out to railway support though. Lets see
hitesh
hiteshOP14mo ago
Figma
Server-side sandboxing: Virtual machines | Figma Blog
A deep dive on VMs and how we use them at Figma to achieve security isolation
Want results from more Discord servers?
Add your server