Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions registry/databricks-sql.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "databricks-sql",
"source": {
"url": "https://github.com/garridolecca/rustgis-databricks/releases/download/v0.4.0/databricks-sql-0.4.0.rgplugin",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a non-sandboxed process plugin whose network permission is the plugin's own, not enforced by RustGIS. The package is pinned by SHA-256, which is good. requirements.txt is unpinned (databricks-sql-connector[pyarrow]>=4.0, databricks-sdk>=0.50), so what gets installed from PyPI can change after review. I'd ask the author to pin exact versions. Confidence: medium.

"sha256": "1c610014750808b1326ee53d1f3902b6cf6a15638b3252b0ddd7f97355948e9e"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a process plugin (unsandboxed Python with the user's full rights). I read all of main.py (1,170 lines) from the unpacked package. I found no subprocess, eval/exec, obfuscation, environment or home-folder reads, or direct network code. Network access goes only through databricks-sql-connector and databricks-sdk, using the user's CLI profile.

Points for a maintainer to weigh (low to medium confidence):

  • requirements.txt is unpinned (databricks-sql-connector[pyarrow]>=4.0, databricks-sdk>=0.50). Both are well-known packages, but each install resolves to whatever is newest on PyPI. Pinning exact versions (or using a lock) would make the reviewed package match what runs.
  • The files permission is used to write GeoPackages to tempfile.gettempdir()/rustgis-databricks/. The folder is shared and predictable, and nothing is cleaned up, so large result sets pile up in /tmp.
  • Genie can create a Databricks Genie space as a side effect (Created Genie space 'RustGIS · …'). Beyond reading data, the plugin changes the user's workspace. This should be stated in the description and README.
  • sql-layer accepts anything starting with select or with. The statement is wrapped as (…) in a subquery, which limits abuse. Genie-generated SQL is wrapped the same way but not checked for SELECT.

},
"categories": [
"Data",
"Vector"
]
}
Loading