Skip to main content
Version: Next

Upgrading to 0.16

Coming from 0.14.x or earlier, first apply Upgrading to 0.15.

From 0.15.x to 0.16.0​

0.16.0 upgrades directly from 0.10.0 or later and rolls back to 0.15.3 without a restore of the control-plane database. No catalog migrates and no control-plane change is applied. The node protocol stays 10, so a node started by a 0.15.x release keeps serving a 0.16.0 manager, and the other way round after a rollback: it only lacks the node-side changes of the release that did not start it.

The steps below cover every 0.15.x release. Skip a step marked for a release you already run.

Checklist​

Before upgrading

  1. Change every password that starts with qod_pat_. FlightSQL and the Quack front door now read such a credential as a personal access token only, as the bearer or as the Basic password, and never try it as a password. A user whose password starts with qod_pat_ can no longer connect there until it is changed. See Personal access tokens on FlightSQL.
  2. Coming from 0.15.0 or 0.15.1 with fleet pools that declare cohorts: label your servers first. From 0.15.2 a cohort's new nodes only go on servers whose labels contain its nodeSelector. See Fleet cohorts follow server labels.

While upgrading

  1. Upgrade the node image with the manager. On Kubernetes, run the 0.16.0 node image; fleet servers need this release's qod fleet join, which bundles its qod-node. The 0.16.0 images also pre-install the iceberg, mysql and avro extensions, so Iceberg and MySQL sources attach on a node with a read-only root filesystem.

After upgrading

  1. Restart every node. The node-side changes of 0.15.3 and 0.16.0 apply only to a node started by this release: the refusals on nested schemas, the refusal of . and .. segments in remote paths, a mask that stays in force while a session changes a setting, a row policy scoped to a table macro, and the refusal of a rename, drop or retype of a table or column that a policy names. Scale each pool down and back up, or restart its nodes.
  2. Coming from 0.15.0: read the boot output for masks. At each boot the manager prints one WARN: line on stderr per column mask whose result does not have its column's type, naming the tenant, the role, the policy id and the column, never the mask. Every read of such a column is refused. Rewrite each mask with TRY_CAST(<form> AS <column type>), or use NULL or a deny. See Masks keep their column's type.

Personal access tokens on FlightSQL​

A tenant user's personal access token now connects on FlightSQL: JDBC with token=<pat>, ADBC and dbt-qod with user name token and the token as the password, and qod sql with QOD_TOKEN. The token's databases, pools, roles, read-only ceiling, branch-only rule and expiry apply, and revoking it ends its open FlightSQL sessions.

  • A token session never uses the admin SQL dialect (CREATE USER, GRANT, UNDROP TABLE, ...), as on REST and MCP, so a token, a tenant admin's included, cannot manage users, roles or grants over FlightSQL. Use a password login or the REST API for that.
  • A token restricted to MCP tools, to a row cap or to a statement timeout is refused on FlightSQL, and so is a superuser's or a staff member's token.
  • The Quack front door accepts no token: it refuses a credential that starts with qod_pat_.

See Connecting.

Fleet cohorts follow server labels​

Until 0.15.2 a fleet pool ignored its cohorts' nodeSelector. A cohort's new nodes now only go on servers whose labels contain the selector, so a node that restarts or is refilled while no free server carries those labels stays pending with reason none_match. Running nodes are not moved. Start each server with qod fleet join --label key=value (repeatable) or QOD_FLEET_LABELS=key=value,key2=value2 before upgrading the manager. Pools without cohorts, and maintenance and merge nodes, prefer servers with no labels the selector did not ask for: a preference, not a reservation.

A cohort node refilled before 0.15.2 may restart in another cohort, since its cohort now comes from its id. Only pools whose cohort slots were refilled before the upgrade have such nodes. See Pools and cohorts.

What node refusals are new​

Both refusals below apply to every principal, superusers included.

  • Nested schemas. QoD does not support nested schemas. Nodes already refused every statement on an entry of one; they now also refuse a read of a nested schema's table at an earlier snapshot (an AT read, or DuckLake's change feed), and a DROP SCHEMA of a schema that holds nested schemas. No statement sent through QoD creates one; only a DuckDB client writing the catalog directly can create or remove it.
  • . and .. segments in remote paths. A read, write, listing or glob of an s3://, s3a://, s3n://, r2://, gs://, gcs://, az://, azure://, abfs://, abfss://, http:// or https:// URL whose path holds such a segment is refused, whether a statement names it or a catalog lists it: QoD: a remote path may not hold a '.' or '..' segment. / and \ both separate segments, and %2e reads as .. Write such paths without those segments.

What changes in the console​

  • The sidebar has no Catalog entry (the catalog stays inside Databases) and no Starlake Workbench link. Under Tenant, "Auth Provider" is now "Authentication" and "Access Control" is now "Authorization".
  • "Settings" is now "Profile", with one entry per section (Account, Change password, Access tokens, S3 credentials, Recover tables, Usage, Recent statements).
  • After a token is created, Profile > Access tokens shows a ready-made setup with that token for each client: the MCP clients, Python, DBeaver/JDBC, dbt and the qod CLI.

See Admin UI.

New in 0.15.1 to 0.16.0​

  • Azure Blob and ADLS Gen2 data paths can sign through the instance's identity (QOD_AZURE_CREDENTIAL_CHAIN, QOD_AZURE_ACCOUNT_NAME), with AKS workload identity in the Helm chart (0.16.0).
  • A Kubernetes node pod deleted on its own (kubectl delete pod, an eviction, a node drain) comes back at the next reconcile pass (0.16.0).
  • QOD_AUDIT_SINK=file hands audit and statement events to a log shipper (0.15.3). See Audit log.
  • QOD_DATA_DIR moves the CLI's durable state directory (0.15.1).
  • Manager modules can link the console to their own pages, read their own stored sources, let a tenant admin edit a source that holds its secrets when the source type opts in, and provide sources per tenant. See Extending QoD.