Repository navigation
·
145 commits
to main
since this release
Security & Hardening
This patch release hardens SQL execution and HTTP communication endpoints across PyGWalker's local web server and web framework integrations:
- Isolated DuckDB execution: DataFrame kernel queries now run on per-parser isolated in-memory DuckDB connections with external file/extension access disabled and
temp_directoryunset. (Because temporary disk spilling is disabled, very large in-memory aggregations must fit in memory.) - Read-only SQL validation: Queries executed across DataFrame, database
Connector, and Spark parsers are validated as single read-only queries restricted to the active dataset view. - Hardened HTTP communication:
- The local web server (
pyg.walk()outside Jupyter) now requires a per-session URL token (http://localhost:<port>/?token=...) exchanged for anHttpOnly; SameSite=Strictsession cookie, validatesHost/Origin, requiresapplication/jsonwith a custom request header, and no longer serves files from disk. - Streamlit, Gradio, and Reflex communication endpoints now require
application/jsonand the custom request header, disableopen_in_desktop, bound the comm registry, and sanitize unexpected server error messages. - Server-parsed data sources (
Connector, cloud datasets) no longer expose raw-SQL endpoints.
- The local web server (
- Security Policy: Added
SECURITY.mdwith private vulnerability reporting instructions and deployment guidance.
Upgrade Notes
- Upgrade with
pip install -U pygwalkerand restart any running PyGWalker-backed web applications (Streamlit, Gradio, Reflex, marimo). - Always configure database
Connectorwith a read-only, least-privilege account scoped only to the tables/views intended for visualization.