Skip to content

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 12:44
7bdeb36

v0.21.0 tightens storage access, makes image-build failures easier to investigate, and adds node health reporting APIs. These notes cover v0.20.0 → v0.21.0.

👀 Highlights

🔐 Storage reads now require access to the bucket

Being logged in is no longer enough to browse every bucket or file. You need a capability token covering the resource, ownership of the bucket, or bucket_update / bucket_delete with reach into the bucket's realm. Files use their bucket's realm and owner, not the uploader's. Lists omit inaccessible records; a login requesting one directly gets 404.

Uploads into analysis buckets now require ownership, bucket_update reach, or a capability with write. The UI downloads directly with short-lived capability tokens instead of its removed /api/download proxy. All four backend services stop reading access tokens from cookies; the UI still uses its own session cookies.

For integrations, server-core's existing token-minting endpoint is the path to resource-scoped storage access:

POST /analyses/:id/storage/token
Authorization: Bearer <access token>
Content-Type: application/json

{ "cap": ["bucket:<bucketId>:read,write", "bucketFile:<fileId>:read"], "lifetime": 60 }

Send the returned token as a bearer token for supported storage API calls. Only short-lived stream capabilities may use ?dt= on the two storage stream routes. Capability requests now share their subject's rate-limit budget with login requests: 1,000 requests/s for clients and 100 requests/s for users, rather than the anonymous per-address budget. Nodes behind one egress address therefore no longer compete for that anonymous allowance.

Warning

Upgrade every node's storage service to 1.3.0 or later before deploying this release. Then roll out server-storage → server-core → client-ui. Review roles that browse storage directly; no new permission is introduced.

📖 Storage access and rollout · Storage API and capability routes

🛠️ Find the reason an image build failed

The master-image admin page now supports partial search across names and paths, plus status tiles for built, building and failed images. Open an image's detail page to see the last failure reason and logs and events scoped to that image, instead of mixing events from every image.

Both master-image and analysis image build failures now log the tail of Docker's build output, not just its final error. Messages retain the newest output within the 4,096-character telemetry limit. Master-image builds also honor .dockerignore, and analysis push progress covers all layers instead of resetting for each one.

Note

Both master-image admin pages now require master_image_manage; a login alone no longer opens the list page.

📖 Worker service

🩺 Nodes can report health without relying on the adapter

The Hub now accepts a full adapter snapshot at PUT /nodes/:id/status, or a component's own report at PUT /nodes/:id/components/:name/status. Only the node's bound client can write these reports. A snapshot replaces the component set; a self-report updates one component, so first-party components can report independently of the adapter.

A snapshot uses a top-level version, alongside its components:

{
  "version": "1.2.3",
  "components": [
    { "name": "storage", "status": "ok" }
  ]
}

Read the latest state through GET /node-components, or use the HTTP client's node.reportStatus, node.reportComponentStatus and nodeComponent.getMany methods. The Hub stamps report times and marks nodes offline after five minutes without a component report, with a five-minute grace period after Hub startup. This release adds the Hub-side APIs; node-side reporters and the status UI are separate work.

📖 Node status API

🧭 Scoped lists stay scoped, and page reloads avoid a session-refresh trap

Searching a project's analyses now keeps the project filter, and realtime inserts must match the list's filters before appearing. Lists filtered through relation paths do not accept live inserts when the event lacks the relation data; reload to see those new rows.

Several client-vue components also stop starting un-awaited fetches during server rendering. Their discarded server results never reached the HTML, but a rejected token could trigger a refresh after the response was sent, leaving the browser with the old refresh token and causing a later logout.

⚠️ Heads-Up Before Upgrading

Change What to do
Storage reads and analysis uploads enforce access Upgrade node-storage-service to ≥1.3.0 first; use capabilities, bucket ownership, or appropriate bucket grants. Deploy storage, core, then UI.
Backend cookie authentication and UI /api/download are removed Send bearer tokens to backend APIs and migrate download integrations to stream capabilities. Remove backend COOKIE_PREFIX; UI cookie settings still apply.
UI runtime configuration is validated at startup Supply NUXT_PUBLIC_AUTHUP_URL, NUXT_PUBLIC_CORE_URL, NUXT_PUBLIC_STORAGE_URL and NUXT_PUBLIC_TELEMETRY_URL, or their unprefixed build-time defaults. Missing values prevent startup; URL format is not validated.
Authup dependencies move to 1.0.0-beta.77; authorization catalogs are cached Allow up to 60 seconds for policy edits to take effect. Budget one extra Redis connection per service for the dedicated token cache.
JSON routes and uploads enforce content type Send application/json to JSON POST routes and the expected upload content type; unsupported or missing content types can now return 415.
Library exports and configuration change Replace client-vue's removed FSegments / SegmentItem with VCFormRadioGroup in segmented mode. Import appendQueryConditions from @authup/access, not server-kit. Stop passing the removed redisClient option to createAuthupTokenVerifier.

Production console logging also changes from debug to info. If you deployed unreleased node-status code before the deploymentVersion → version rename, review #2080 before running migrations; that staging migration was renamed before release.

⬆️ Upgrading

For a source checkout of this tag, install the lockfile and rebuild:

npm ci
npm run build

Use the storage rollout order above rather than updating all services together. Check the deployment configuration and frontend runtime variables before rollout.

👉 Changelog

The original generated changelog is retained below; the highlights above also cover changes to other workspaces in this release range.

0.21.0 (2026-12-01)

⚠ BREAKING CHANGES

  • a logged-in identity without one of the bucket permissions no longer reads buckets or files it does not own.

Features

  • bump authup to 1.0.0-beta.77 and adopt new upstream features (#2063) (39985d0)
  • enforce storage read access and drop the cookie and download proxy (#2019) (ab16e77)
  • redesign the master-image admin page with search, status filters and failure details (#2069) (ff51110)

Bug Fixes

  • client-vue: keep list filters on search and realtime inserts (#2052) (f0077bf)

Dependencies

  • The following workspace dependencies were updated
    • devDependencies
      • @privateaim/client-vue bumped from ^0.20.0 to ^0.20.1
      • @privateaim/client-vue-theme bumped from ^0.20.0 to ^0.20.1
      • @privateaim/core-kit bumped from ^0.20.0 to ^0.20.1
      • @privateaim/kit bumped from ^0.20.0 to ^0.20.1
      • @privateaim/storage-kit bumped from ^0.20.0 to ^0.20.1
      • @privateaim/telemetry-kit bumped from ^0.20.0 to ^0.20.1

These release notes were generated by tada5hi[bot].