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

Disabling Trust Does Not Disable Very First "Attaching to a container may execute arbitrary code." Prompt #10735

Open
kuchungmsft opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
containers Issue in vscode-remote containers

Comments

@kuchungmsft
Copy link

Version of VS Code: 1.97.2

What type of remote connection you were using: Containers

Your operating system: Ubuntu 22.04

The remote operating system you are connecting to: Ubuntu 22.04

List of extensions that you have installed:

  • github.copilot
  • github.copilot-chat
  • ms-vscode-remote.remote-containers
  • ms-vscode-remote.remote-ssh
  • ms-vscode-remote.remote-ssh-edit
  • ms-vscode.cmake-tools
  • ms-vscode.cpptools
  • ms-vscode.remote-explorer

Reproducible steps (1... 2... 3...) that cause the issue

  1. On a fresh Ubuntu image, install Visual Studio Code.
  2. Add "security.workspace.trust.enabled": false to User's settings.json
  3. Start a Dev Container to attach to.
  4. In Visual Studio Code, try attach to the Dev Container.
  5. The following modal dialog shows up.
    Image

What you expected to see, versus what you actually saw
Expect to not see the "Attaching to a container may execute arbitrary code." modal dialog for the very first time attaching to a container when Trust is completely disabled. Once the dialog is dismissed by human interaction, it won't show up again, however, this human interaction is not possible in the automatic test environment where no human is involved.

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

2 participants