Skip to content

Limit directory navigation for UX #1834

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
IsabellaRO opened this issue Jun 25, 2020 · 2 comments
Closed

Limit directory navigation for UX #1834

IsabellaRO opened this issue Jun 25, 2020 · 2 comments
Labels
enhancement Some improvement that isn't a feature
Milestone

Comments

@IsabellaRO
Copy link

Hello,

I would like to suggest a feature that would help me a lot in a project that I am developing with Code Server and I think it could help some other people too.

Basically, I am running Code Server in my laptop and accessing it through Chromium in some Raspberry Pi's.
I am already specifying a directory path when running the code server command, but in the Raspberry Pi's I can access some previous directories by clicking in "Open Folder" and typing ".." in the navigation bar of the VSCode, as you can see in the pictures below .

When I click in "Open Folder":
"open folder"

When I type ".." in the navigation bar:
"navigating"

I would like to limit this navigation so the Raspberry Pi's can access only the specified directory or the posterior ones (the directories inside the specified directory). This specification could be through command line or the way you find it easier to implement.

Some infos that maybe will help:
I am running code server in Ubuntu 18.04 with this command:
console code-server / home / teacher / SOMAS / --auth none

I am accessing code server via Chromium in a Raspbian OS, but the same happens if I access it through Google Chrome in another laptop with Ubuntu 18.04.

If you need any further information, please let me know.

Thank you!

@code-asher
Copy link
Member

code-asher commented Jun 29, 2020

One way I think you could accomplish this is to use chroot.

Related: #1251. We opted not to do anything since from a security perspective it doesn't help since users still have access to the terminal, however maybe this makes sense purely from a UX perspective.

@nhooyr nhooyr added enhancement Some improvement that isn't a feature security Security related and removed feature security Security related labels Dec 7, 2020
@nhooyr nhooyr changed the title Limit directory navigation Limit directory navigation for UX Dec 8, 2020
@jsjoeio jsjoeio added this to the Backlog milestone Apr 29, 2021
@stale
Copy link

stale bot commented Oct 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale label Oct 26, 2021
@stale stale bot closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

No branches or pull requests

4 participants