Skip to content

hal0 v1.8.4

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 04:03
· 151 commits to main since this release

Highlights

  • Security fix release; take it promptly.

Security

  • Slot names, slot paths and a slot's [server].env are held to fixed rules. Every slot name is held to the slot name rule (1 to 32 characters of a-z, 0-9, - and _, starting with a letter or digit) where a slot is created or renamed, and every slot route answers 400 slot.invalid_name for a name that is neither valid nor an existing slot's. A slot config write can no longer change the slot's name or id (400 slot.identity_key_denied). A [server].env key must be an environment variable name and no value may hold a line break or a NUL, checked when the config is written and again when the slot launches (400 slot.env_invalid). The slot config file, data directory and state file are checked to stay inside their directories, and unit, container and Quadlet names are built only from a valid slot name or id. A slot stored under an older name outside the rule still lists and can be deleted or renamed. (GHSA-9mh8-xx95-qx8r)
  • Installer routes are held to the admin sign-in rule once an admin key exists. With enforcement off on a box bound beyond loopback, the per-caller admin rule now covers /api/install/* as it covers admin routes, so a request from another machine needs an admin session or key. A box with no admin key keeps its open first-run installer, and a caller on loopback is unaffected. (GHSA-v9h7-rc9c-3f4g)

Known issue

  • Do not move the model store on 1.8.x. After a move (Settings, Storage, "Move existing models"; hal0 model store <path> --migrate; or the API), the model files are moved intact but each model's registry entry keeps its old path, so a slot that uses a moved model fails to load. This is in every 1.8 release and is fixed in the next release (#4206). If you have already moved the store, point each moved model at its file again: PUT /api/models/<id> with {"path": "<the file's path under the new store>"}. The entry keeps its id, its settings and its slot bindings. A rescan does not repair it. This recovery was checked on a test tree, not yet on a box with loaded slots.