Skip to content

Creating instances of code server dynamically on demand #2558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
redbastie opened this issue Jan 11, 2021 · 1 comment
Closed

Creating instances of code server dynamically on demand #2558

redbastie opened this issue Jan 11, 2021 · 1 comment

Comments

@redbastie
Copy link

What would the best approach be to create something similar to stackblitz?

For example, someone visits my website and clicks "new project". You can see stackblitz creates a new sub domain each time.

Would I spin up a vm or something each time? What is the best approach for this? And how do I ensure that the user cannot run any exploits that would effect any other sub domain?

Thank you.

@code-asher
Copy link
Member

Normally I'd convert this to a discussion but for some reason that option has disappeared. 😕

I'll close this since it's not an issue we can act on but definitely feel free to continue the conversation here.

As to your question, I'm no security expert but VMs should sufficiently protect against those sorts of exploits.

https://github.com/cdr/code-server/blob/v3.8.0/doc/FAQ.md#multi-tenancy

There are a few people who have done pretty much exactly what you're thinking and it seems to work out well: #792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants