Apply file transfer restrictions to the integrated browser
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- typescript, vscode
Piste de recherche
Commencez par localiser la gestion existante de la restriction des transferts de fichiers et le point d’entrée du navigateur intégré dans l’interface de code-server. Suivez la façon dont les téléversements et téléchargements du navigateur atteignent le client local ou le serveur distant, puis vérifiez que les transferts qui franchissent cette limite sont bloqués, tandis que les opérations effectuées uniquement sur le serveur restent autorisées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What is your suggestion?
I would like code-server to apply the same file transfer restrictions to the integrated browser available directly inside the VS Code/code-server interface.
Today, code-server can restrict actions such as drag-and-drop, file download, and file upload between the user's local machine and the remote code-server environment. However, the integrated browser inside the interface should also respect these restrictions.
If file transfer is disabled, the integrated browser should not allow users to bypass the restriction by downloading files to their local machine or uploading files from their local machine.
However, the browser should still be allowed to download or upload files only within the remote server environment. For example:
- downloading a file from a website should be allowed only if the destination is a folder on the remote server;
- uploading a file should be allowed only if the file comes from the remote server filesystem;
- uploading or downloading directly between the integrated browser and the local client machine should remain blocked when file transfer restrictions are enabled.
In short, the restriction should prevent transfers outside of the server, but should still allow file operations that stay entirely inside the server environment.
Why do you want this feature?
This would improve security and make file transfer restrictions consistent across the whole code-server interface.
In managed or restricted environments, administrators may disable drag-and-drop, file downloads, and file uploads to prevent data from being moved between the remote server and the local user device.
If the integrated browser can still upload files from the local machine or download files to the local machine, users may be able to bypass these restrictions. This weakens the security model and makes the existing restrictions less effective.
The expected behavior would be:
- local machine to server transfer: blocked when upload is disabled;
- server to local machine transfer: blocked when download is disabled;
- server-only file operations through the integrated browser: allowed.
This would be useful for enterprise, education, sandbox, and controlled development environments where administrators need strong control over data movement.
Are there any workarounds to get this functionality today?
There does not seem to be a clean native workaround today.
Possible workarounds may include disabling the integrated browser entirely, using proxy or network-level restrictions, or maintaining custom patches, but these approaches are not ideal. They can be difficult to maintain, may break legitimate workflows, and do not provide a clear policy-based way to enforce the same restrictions everywhere in code-server.
A native option would be much better because it would make the behavior predictable and consistent with the existing file transfer restrictions.
Are you interested in submitting a PR for this?
Not at the moment, but I would be happy to provide more details, test the behavior, or validate a proposed implementation in a restricted code-server environment.
- Langage dominant
- TypeScript
- Étoiles
- 79.4k
- Forks
- 6.9k
- Merge moyen
- 2 j 13 h
- PR mergées (30 j)
- 39
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de coder/code-server
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
coder/code-server#8017 · 2 commentaires ·
-
Bump proxy-addr to 2.0.8 Ouvertesecurity
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
coder/code-server#8013 · 4 commentaires ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
coder/code-server#7976 · 2 commentaires ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
coder/code-server#7962 · 3 commentaires ·
-
bug needs-investigation
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
coder/code-server#7955 · 1 commentaire ·
Toutes les issues de coder/code-server
Issues similaires
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
Mend: dependency security vulnerability untriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100