Skip to content

v0.118.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 22:35
bacaf92

[v0.118.0] - 2026-11-25

Added

  • A self-hosted API server hands back what it stores, POST /v1/resolve-storage-url/bulk and GET /v1/storage/{key}: the server serves the hosted platform's bulk resolve contract for its own storage, field for field, so the long texts, generated images and received files a run hands back as pipelex-storage:// references load and download through both SDKs and every client built on them, where a bare server answered a 404. Under AUTH_MODE=jwt a caller resolves only references under its own user_id, and one under another scope is refused on its item as auth.forbidden with the requirement read_scope_under_caller, while a deployment that identifies no caller resolves any reference that parses; a reference that does not parse is refused on its item as pipelex.storage.uri_invalid, and each resolved link is the server's own signed download route, which needs no bearer token, starts with PUBLIC_BASE_URL when it is set, expires after STORAGE_LINK_TTL_SECONDS (fifteen minutes by default, at most seven days), and answers a bad or expired signature with a 403 auth.forbidden whose requirement is signed_storage_link and an address holding no file with a 404 under the new code pipelex.storage.object_missing. The download route serves a validated bare media type, a type/subtype without parameters that it derives itself from the type the storage kept, or, for the local and in-memory storage, which keep none, from the name the object was stored under, the type the resolve route reports. Neither route is mounted when the server trusts forwarded identity (TRUST_FORWARDED_IDENTITY_HEADERS=true), where the host's platform serves it. Over plain http, pipelex-sdk and @pipelex/sdk releases up to 0.69.x (0.69.5 being the latest) refuse the link unless the caller opts in with allow_http=True / allowHttp: true, and from 0.70.0 both SDKs accept a plain-http link on the client's own configured origin without the flag.
  • A router can refuse a PipeBatch before its first item starts, PipeRouterProtocol.check_batch_fits and PipeBatchTooWideError: a PipeBatch asks its router once, after it knows its item count and before it records its fan-out or starts a branch, whether the batch fits, handing it the very job its first branch then dispatches; the default body answers yes, so in-process runs are unchanged, and a durable router may refuse a batch whose branches would pass what its run's history holds by raising PipeBatchTooWideError from pipelex.pipe_controllers.exceptions. The error takes the batch's figures as keyword arguments, the estimated bytes and events, those left, the largest item count that fits and, for a batch stopped during its fan-out, the items already started, builds its message from them, and fails the PipeBatch as input.too_large whose input is the batched list, size its item count and limit the largest count that fits, withheld when not even one item fits.

Changed

  • A signed link of the API server stays valid for at most seven days (Breaking): BLOB_UPLOAD_URL_TTL_SECONDS and STORAGE_LINK_TTL_SECONDS are capped at 604800 seconds, as an S3 presigned URL is, and the server refuses to start when either is set above the cap, naming the variable, where a larger upload lifetime used to be accepted and could make every link fail.
  • LINK_SIGNING_KEY replaces BLOB_UPLOAD_SIGNING_KEY (Breaking): the API server signs its upload targets and its download links with one key, each kind of link under a purpose of its own, so a deployment of several instances or several worker processes (uvicorn --workers N, or a host that sets WEB_CONCURRENCY) that set BLOB_UPLOAD_SIGNING_KEY sets LINK_SIGNING_KEY instead; unset, each process still draws its own key.

Fixed

  • The local storage provider reads a key naming no regular file as a missing file: in every read, load_with_metadata, load_head, load_size and load_metadata, a key naming a directory, a path through a file, or a segment longer than the filesystem holds raises StorageFileNotFoundError instead of StorageLocalError or a raw OSError. The check reads the path's status itself, so a permission the filesystem refuses raises StorageLocalError on every supported Python, where from Python 3.14 Path.is_file() would have read it as a missing file.

What's Changed

Full Changelog: v0.117.0...v0.118.0