Repository navigation
Open
Labels
priority: P1Core release payload — the milestone's stated goalroadmapIndustrialization roadmap itemtrack: workloadsIngestion, sizing, scale, benchmarktype: feature
Description
Goal — v0.8 DuckDB query track (parallel with dbt-spark)
Run read-only, per-person ad hoc SQL via DuckDB on Polaris Iceberg without embedding untrusted SQL in the shared Platform API process. Query=duckdb is independent of the choice of Gold dbt processing adapter; in no-Trino mode it pairs with dbt-spark.
Scope
- Provision a pinned, minimal DuckDB execution image (offline baked
iceberg,httpfs,aws,avroextensions; reuse knowledge fromopenlakeforge_runtime/duckdb_extensions.pywithout inheriting Floe/Gold writer keys). - Implement per-query Kubernetes Jobs as first POC (or justify a per-identity isolated worker pool if cold starts dominate). Worker receives a short-lived, verified person's Dex token and only stage-bound Polaris REST catalog access, with
ACCESS_DELEGATION_MODE 'vended_credentials'on S3-compatible storage. - Reuse ADR 0019's per-person grants and SeaweedFS STS configuration. Prove Polaris and DuckDB actually vend scoped storage credentials in OLF's deployment; never fall back to a shared stage-wide S3 key.
- Set
read_only/sandbox controls as defense in depth but do not rely on SQL prefix filtering: DuckDB executes arbitrary I/O and extensions. Use non-root, no host mounts, read-only root FS where feasible, minimal writable scratch, restrictive network egress, fixed extension allowlist, OS/K8s isolation, CPU/RAM/runtime limits. - Implement an authenticated control-plane job record and bounded results lifecycle: progress, paging or spooled results, cancel/cleanup, TTL, max concurrent queries, expiry and no leaked result data after a failed/retried job.
- Validate Iceberg v2 delete semantics, metadata/snapshot refresh, nested schemas, types, Polaris OAuth/OIDC token renewal and proper S3 endpoint/path-style use.
Security gate
- Reject untrusted DDL/DML,
COPY, direct arbitrary file/network reads,INSTALL/LOADfor unapproved extensions, credential enumeration, SQL injection into ATTACH/SECRET and access to other stages. SQL checks alone never count as full containment. - Verify owner isolation and no cross-session cache/secret reuse for concurrent analysts/viewers; separate query identity from dbt writer privileges.
- No Kubernetes API client/ServiceAccount credential visible to executed SQL; any job creator privileges remain in an isolated controller/API.
Acceptance
- A user can SELECT a permitted Silver/Gold table; another user is denied per Polaris grants, including S3 object access.
- Worker can't alter tables or read files outside granted location, despite crafted SQL.
- Jobs bound and cancel safely, emit structured redacted logs and delete ephemeral credentials/results at TTL.
- No additional DuckDB service or Trino required by query path alone; no assertion that the whole platform is Trino-free while dbt-trino is selected.
- Cold/warm startup, overhead and concurrency measured on local and multi-node K3s.
Metadata
Metadata
Assignees
Labels
priority: P1Core release payload — the milestone's stated goalroadmapIndustrialization roadmap itemtrack: workloadsIngestion, sizing, scale, benchmarktype: feature
Activity
malon64 commentedon Nov 19, 2026
Moved from v0.8-beta to v0.9-beta (2026-11-19): v0.8 qualifies the current stack (Trino + dbt-trino) on cloud and on-premises; separating the compute and query engines follows in v0.9, which already targets scale-to-zero and burst capacity for batch and query.