Please do not open a public issue for a security problem.
Report it privately with GitHub's Report a vulnerability button on the Security tab. Include what you found, how to reproduce it, and which version you used.
You can expect a first reply within a few days. Once a fix is released, the report is credited unless you prefer to stay anonymous.
Only the latest release on the VS Code Marketplace and Open VSX receives fixes.
- It reads the files in the folder you open and runs one external program, the Databricks CLI
you installed (
databricks bundle validate), with fixed arguments. - To find that CLI, it may also run
databricks --versionon eachdatabricksfile on yourPATH, and on the one the Databricks extension ships. On Windows only, when the CLI isn't found, it runs%SystemRoot%\System32\reg.exe queryto read (never change) your storedPath, so a CLI installed after VS Code started is found without a restart. - It does not run code from your bundle, such as notebooks or build commands. The Databricks
CLI itself can run code while it loads a bundle (shell commands under
experimental.scripts, Python under thepythonsection), so the extension starts it withDATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTIONset, which makes the CLI refuse. A test runs this against every supported CLI version. Versions 0.2.0 and older did not set it. CLI versions older than v0.246.0 don't know this variable and run that code anyway, so use a supported CLI (v0.299.0 or newer). - It writes nothing into the folder you open. For a real target the CLI keeps working files in
<bundle>/.databricks, so the extension setsDATABRICKS_BUNDLE_TMPto a folder in the system temp folder instead. A test checks that the bundle folder is unchanged after a check. Where other users share the temp folder (/tmpon Linux), that folder is created for your user only, and one another user made or a link is never used: a new private folder is. - Usage telemetry never includes paths, names or file contents, and can be turned off. See the README.