Skip to content
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

Block Extension Access to Sensitive Files in the Project #235526

Open
erfanium opened this issue Dec 6, 2024 · 2 comments
Open

Block Extension Access to Sensitive Files in the Project #235526

erfanium opened this issue Dec 6, 2024 · 2 comments
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality file-io File I/O

Comments

@erfanium
Copy link

erfanium commented Dec 6, 2024

related to #52116

Currently, VSCode extensions have access to all files within a project by default. This poses a potential security risk, as projects may include files containing sensitive information, such as .env files.

To enhance security, it would be valuable to allow developers to explicitly mark certain files or patterns as sensitive in .vscode/settings.json. Files marked as sensitive would remain invisible to all third-party code, including extensions.

Proposed Feature:
Introduce a files.sensitive setting in the workspace configuration to define sensitive files. Example:

{
  "files.sensitive": {
    "**/.env": true
  }
}

This feature would:

  • Ensure extensions cannot access or read marked files.
  • Improve trust and security when using third-party extensions.
@RedCMD
Copy link
Contributor

RedCMD commented Dec 6, 2024

extensions can modify the settings file

@sandy081 sandy081 assigned alexdima and bpasero and unassigned rzhao271 and sandy081 Dec 9, 2024
@bpasero bpasero added feature-request Request for new features or functionality file-io File I/O labels Dec 10, 2024
@bpasero bpasero added the extensions Issues concerning extensions label Dec 10, 2024
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Dec 10, 2024
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality file-io File I/O
Projects
None yet
Development

No branches or pull requests

6 participants