Restrict to folder

hi, is there any chance to restrict code-server to a specific folder ? Users can open root via Url parameter.
11 Replies
Codercord
Codercord•7d ago
<#1326106946821951488>
Category
Help needed
Product
code-server
Platform
N/A
Logs
Please post any relevant logs/error messages.
What operating system are you running code-server on?
Phorcys
Phorcys•7d ago
hey @support - osr - plastic, you can't really do that but your best bet would be to run code-server as a user that can only access specific folders
support - osr - plastic
right, thank you; any chance to pass a VFS / FS implementation instead ? not quite sure about the overhead to maintain such 'hack'.
Phorcys
Phorcys•6d ago
not really no the separate user isn't going be a hard thing to maintain honestly
support - osr - plastic
right, thank you - will try anyway, i guess monkey patching node:fs and related could do
Phorcys
Phorcys•6d ago
while you could do that, i'm wondering what your broader goal is?
support - osr - plastic
making code-server suitable for a broader audience 🙂 just learned about vs code extension remote workspaces, seems to do the job but yet ...
Phorcys
Phorcys•4d ago
my question was mostly a "do you need code-server?" one, could using Monaco inside your own web app be suitable?
support - osr - plastic
I'd need all the rings and bells, extensions, file managment, ... I am aware about Monaco, since day one thanks, will keep digging 🙂
Phorcys
Phorcys•4d ago
sounds good, closing this issue but feel free to ask any questions
Codercord
Codercord•4d ago
@Phorcys closed the thread.

Did you find this page helpful?