Skip to content

Security: uncoverthestack/databricks-bundle-inspector

SECURITY.md

Security Policy

Reporting a vulnerability

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.

Supported versions

Only the latest release on the VS Code Marketplace and Open VSX receives fixes.

What the extension does and does not do

  • 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 --version on each databricks file on your PATH, and on the one the Databricks extension ships. On Windows only, when the CLI isn't found, it runs %SystemRoot%\System32\reg.exe query to read (never change) your stored Path, 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 the python section), so the extension starts it with DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION set, 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 sets DATABRICKS_BUNDLE_TMP to 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 (/tmp on 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.

There aren't any published security advisories