Skip to content

v0.9.1

Choose a tag to compare

@github-actions github-actions released this 02 Oct 18:31

Release v0.9.1

📦 NPM packages

🐳 Docker image

docker pull ms2data/malloy-publisher:0.9.1
docker pull ms2data/malloy-publisher:latest

ℹ️ Details

  • Release branch: release/sdk-0.9.1
  • Triggered by: @housejester

A refused filesystem access says why, and a local package zip is extracted into publisher_data

0.9.0 runs the image as uid 1000, so a mount that only root can write fails in places that used to work. Those failures answered a bare {"code":500,"message":"Internal server error."}, and the EACCES that explained them reached only the server log. A refused access (EACCES, EPERM, EROFS) now answers HTTP 500 naming the errno, the operation and the path, for example The server cannot access a path it needs (EACCES: permission denied, mkdir '/publisher/publisher_data/analytics/.temp_…'). The same applies where a wrapper used to hide it: the environment README and publisher.json writes, and a package location that failed to mount at boot, whose loadErrors entry now carries the errno instead of only Failed to mount local directory. An unreadable package directory, which answered 404 Package manifest … does not exist., now names the errno too.

A local .zip package location is extracted into publisher_data/, never beside the archive. It used to be extracted into a directory next to the zip, named after it, after removing any directory already at that path. So a location like /data/pkgs/sales.zip deleted an operator's own /data/pkgs/sales/ if one was there. It also made a package mount a write mount, which is how uid 1000 met it. A package mount, or a directory of zips, now only needs to be readable, including when bound read-only, and nothing beside the zip is created or removed. A .zip declared in publisher.config.json loads too, on a boot that mounts the environment from the config; a server restoring an environment it already holds keeps what it had until that package is reloaded. Before, it never did, whatever the uid: the boot path copied the archive file onto the package directory (EISDIR on the Bun runtime).

GET /api/v0/status reports two failures it did not:

  • A package add through POST /environments/{env}/packages that fails on the server's side (any 5xx) is listed under loadErrors, like a configured package that did not load, with the same message the add was answered with. It clears when that package is later added successfully, or deleted. A rejection of the package's own content (4xx) is answered with its reason and is not listed.
  • A new initError field says why initialization failed, for example a config file the server cannot read, or a read-only server root it cannot create publisher.db in. Such a server stays up at operationalState: "initializing", which used to be indistinguishable from one still starting; the reason was only on stderr. The field is absent when initialization succeeded. MCP get_status carries it too. It is an optional, additive field on ServerStatus: a client generated from an older copy of the spec ignores it, and one regenerated from this release's api-doc.yaml gains it.

GOOGLE_APPLICATION_CREDENTIALS naming a directory, which is what a bind mount of a host path that does not exist produces, is now reported as a directory on a gs:// package add and on a BigQuery connection test, rather than as a key file that "does not exist".

The image also prepares /publisher/ducklake_data, owned by uid 1000, as the mount point for a DuckLake storage destination whose bucketUrl is a local path: a new named volume there is seeded writable, the way one on /publisher/publisher_data is, instead of starting root-owned. On Kubernetes, a volume is not seeded from the image the way a new Docker named volume is, so a volume on either path starts root-owned; set fsGroup: 1000 in the pod's securityContext. packages/server/README.docker.md has a per-mount section on granting uid 1000 access.

What's Changed

Full Changelog: v0.9.0...v0.9.1