Move database manager SQL queries to backend#8306
Conversation
Deploying windmill with
|
| Latest commit: |
a59a49a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://36bb7d96.windmill.pages.dev |
| Branch Preview URL: | https://query-builders-backend.windmill.pages.dev |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
/ai review this PR |
… SQL injection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…test-only helpers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/ai review this PR |
|
Claude finished @diegoimbert's task in 2m 33s —— View job PR Review: Move database manager SQL queries to backend
OverviewThis PR introduces a "marker-based" architecture for the Database Manager's SQL query building. Instead of generating full SQL on the frontend (which creates policy/digest issues), the frontend now sends lightweight
This is a well-motivated architectural change that improves security (SQL generation moves server-side) and solves the policy digest mismatch problem that arises when SQL is generated client-side. Strengths
Issues & Suggestions🔴 SQL Injection Risk — Snowflake
|
| Priority | Issue |
|---|---|
| 🔴 | Snowflake SHOW PRIMARY KEYS — table name not escaped |
| 🟡 | BigQuery metadata — dataset name not quoted |
| 🟡 | Count query WHERE/AND logic is fragile |
| 🟡 | expand_marker API doesn't return language_override |
…on-schema DBs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
No description provided.