diff --git a/CHANGELOG.md b/CHANGELOG.md index ba5f3e68..dec47410 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,280 @@ Covers `bits`, `lcg.bits` (recipes), and `bits-recipe-tools`. Entries tagged **[ --- # Unreleased - +- **[Change]** bits-console backend: a console session of `bits login` (`BITS_CLI_SESSION_TTL`) and a store token from the console's `POST /store/token` (`BITS_STORE_TOKEN_TTL`) last 12 hours by default (were 8): a working day and its evening. The store token of `bits login --group` keeps its day (`BITS_STORE_CLI_TOKEN_TTL`). A leaked token of the console's carries its group's admin capabilities for that long (revoked only by bits-store's `denied_jti`). +- **[Fix]** `bits compliance --enforce --key`: a signed manifest certified again between the check and the signing (its bytes up, its signature not yet) is waited for, up to 10 s, instead of failing the re-sign after the removals; one that still does not verify says it changed meanwhile and to run the command again. +- **[Fix]** Orchestrator: an architecture whose first manifest was left half-written (its bytes, not its signature) is re-signed from the set at the next repair: when the manifest in place does not verify, the re-sign is checked against the newest one this database wrote for that architecture (none: it may keep nothing). It was refused (no manifest to withdraw from), and so was every withdrawal and refresh of that architecture until a new certification landed. +- **[Change]** Docs: with bits-recipe-tools 0.0.38, `set -e` applies inside recipe hooks (`Prepare()`, `Configure()`, …): the first failing command fails the build; a failure that is fine needs `|| true`. +- **[Fix]** `bits build` sandbox: under `sandbox-exec` a build may write to `$TMPDIR` wherever it is (only the system temp directories were allowed); a path with a backslash is refused like one with a double quote (it would escape the profile's string); and a sandbox that cannot run (`--sandbox=podman` without podman, `sandbox-exec` off macOS) or a path the profile cannot hold stops the build before it starts, not with a traceback at the first package built. +- **[Fix]** Orchestrator: a pipeline build whose certification was refused or failed is certified again once a newer console pre-approval of it is in force: its action's key left out the approval, so a new pre-approval was never asked, and a build decertified after a restored database's copy needed a whole new build. +- **[Fix]** Orchestrator: once the worker owns the certified set (`BITS_ORCH_OWNS_SET`), each certified BOM is again matched to its build's copy in the store (`same`, `differs`, `absent`), by a collector step: only the shadow did it, which does not run then, so the set stayed `unchecked` and a store copy changed since went unseen. +- **[Fix]** `bits enter`, `load`, `setenv`, `q`: without `-a`, the architectures of `sw/MODULES/` and of `sw/` are taken together, newest first: a `MODULES/` that an earlier `enter` made in an empty `sw` (the community's CVMFS arch) hid every arch built since, so their packages were not found. +- **[Fix]** Orchestrator: a database marked as behind the outside audit copy (`outside.behind`) is cleared when the worker starts and the copy is no longer ahead (fixed, or the URL pointed at the right copy): only `outside recover` cleared it, so nothing, the console's included, could record an event again. +- **[Feature]** bits-console backend: a community's admins can hide a release from the risk-over-time chart (`POST /ops/sbom/history/hidden`), a test package built once say, and show it again: it is still recorded meanwhile, and each change is an event. `GET /ops/sbom/history` lists the hidden ones under `hidden`. +- **[Fix]** `bits cvmfs publish`: in a store the orchestrator certifies (`MANIFESTS/orchestrator.json`), a package without a signed entry whose architecture has no signed manifest is refused unless this run built it (a nightly's dated path still takes it): anyone who could delete the manifest from the store got the packages of that architecture published on the build manifest alone. +- **[Fix]** bits-console backend: the `BITS_CLI_PENDING_PER_ADDRESS` (4) cap on pending `bits login` and `bits certify` requests is per user an address names, with a ceiling of `BITS_CLI_PENDING_PER_HOST` (8, at most 8) per address: the users of a shared login node shared the 4, so one of them could lock out the others. The stores of pending pre-approvals and manifests to sign hold 72 (were 32 and 64), the logins' 128 (was 32), so 8 addresses fill none. +- **[Fix]** `bits cvmfs publish`: a run outside CI takes a job id of its own (`local-`, as `bits cvmfs stage` does), so two manual runs of one path by one user on one host no longer share a staging prefix (prepub removes a prefix once promoted). +- **[Fix]** `bits cvmfs stage`: a prepare whose attempts (its base retries included) run over 30 minutes (`--prepare-timeout`) is stopped, the package failing with that said, and another prepare waits for the host's lock a minute longer than that: one that hung held the lock until the CI job's own timeout, and every other staged prepare on the host waited 30 minutes for it and failed. The lock file now names its holder (the job, host, pid and since when), which a prepare waiting for it prints. +- **[Change]** bits-console backend: a build's SBOM (`GET /ops/builds/{p}/sbom`) is for its community's admins and developers (and overall admins): any signed-in user read it, an unpublished build's and a restricted package's included. +- **[Improvement]** Orchestrator: a certification or a withdrawal writes out only the certified set's BOMs of the architectures it certifies, and a new version of the set reads only the BOMs it adds: each read and wrote the whole set. A BOM of another architecture that bits cannot certify no longer stops them. +- **[Fix]** bits-admin: a request whose Content-Length is not a number is refused as too large instead of failing with 500 (the setup-code sign-in). +- **[Improvement]** bits-admin: a key added in a setup-code session is marked so (`added_by`, "with the setup code" in the list, and in its event): its owner is whatever name was typed with the code, an existing admin's too. +- **[Improvement]** bits-admin: the index page reads its last 20 events from the end of the event file, not the whole file at every view. +- **[Improvement]** Orchestrator: the worker creates the database's directory mode 0700 (warning when an existing one is not) and makes the backups' 0700: they hold the certified set's BOMs and the approvals the certifier relies on, and were left to the umask. +- **[Improvement]** bits-console backend and orchestrator: the store's client is built once for the process, the anonymous and the keyed one apart: it was built again (and the bucket checked again) for every request and every worker step. Store keys given to the services themselves (not through the credentials proxy) now take effect at their restart. +- **[Fix]** bits-console backend: redaction (failed jobs' excerpts, the log routes, the chat, errors in the audit chain) knows bits' read tokens (`bitsread.v1.…`) by name: they passed; store tokens are covered as JWTs, which their header makes them always. +- **[Fix]** bits-console backend: an SBOM is read from the store up to 32 MiB (what the sbom-scanner takes), the scan recording a larger one as failed and `GET /ops/builds/{p}/sbom` answering 413: a build job writes it, and it was read into memory whole. +- **[Fix]** Orchestrator: the mirror commits each BOM to bits-manifests as its exact bytes (base64): one that is not UTF-8 stopped the mirror for good, no later version mirrored. +- **[Fix]** bits-console backend: `POST /ops/admin/ci-var` takes for `BITS_DESIRED_REF` (the git ref every build host follows) only a git ref, or empty: any text was written. +- **[Change]** bits-console backend: a GitLab call that fails answers 502 with GitLab's reason only when GitLab refused the request (4xx), with only the status when GitLab failed or was not reached; the whole of it goes to the log. The writes to GitLab share one rule for its answers. +- **[Change]** bits-console backend: `POST` and `DELETE /ops/file` (writing the old schedule files `communities//pipelines/*.json` in GitLab) are gone: the console no longer calls them since schedules are the orchestrator's, and they overwrote a file another admin had just saved without a conflict. +- **[Fix]** bits-console backend: a GitLab list longer than 5000 entries (a pipeline's jobs, the runners, a directory) is an error instead of its first 5000 taken as the whole list. +- **[Improvement]** bits-console backend: a vulnerability left out because a slot builds the development head names who claimed it (`head_by`: the admin who turned *Development head* on; the served SBOM says "claimed by", the listings give `head_by`): any admin of the community can turn it on, and it changes what the report says (migration 39 takes it from the schedules' events). +- **[Fix]** bits-console backend: a new schedule's community directory is the console project's `communities/` of that name, whatever case the request gave, and it is refused when there is none or two differ only in case: the directory was taken as the request spelled it while admins go by the lowercase name, so two directories differing only in case shared admins. +- **[Fix]** Orchestrator: a followed branch's head is read from the address that was checked to be public, the certificate checked against the repository's host name: the name was resolved again on connecting, so one that changed its answer in between reached an internal address with the ls-refs request. Through a proxy (`HTTPS_PROXY`), the proxy resolves the name as before. Needs requests 2.32. +- **[Improvement]** Orchestrator: the steps that only record what the outside world says (failed jobs' logs, the nightly results, the store's problems, timelines, traces, scans) run on a thread of their own, watched by the worker: a slow one, such as reading many failed jobs' logs, held up approved actions and the build queue for its whole length. +- **[Fix]** Orchestrator: a queued build whose host or architecture is missing from GitLab is refused an hour after it went missing, restarts or not: the time was kept in memory, so every restart of the worker gave it another hour (migration 38). +- **[Improvement]** Orchestrator: the build queue is fair between communities: the one with the fewest builds running goes next, and a re-run goes first only among its own community's builds. One community's large request, or its re-runs, held every other community's builds until they had all started. + +- **[Improvement]** bits-console backend: `GET /ops/schedules/files-left?community=` (an admin of the community) counts the old schedule files the GitLab nightly fan-out still runs (`communities//pipelines/*.json`), read with the console's token: the Schedules page read them from GitLab itself, which the private project no longer allows. +- **[Change]** CERN's site configuration no longer gives the help chat the bits-manifests README (`console.docs`): it describes the retired signing there. The docs say what the repository is now: the certified set's mirror, the account and a backup copy of every change to the set, not signed there. +- **[Fix]** bits-console backend: the help chat reads its docs on the site's own GitLab (`console.docs`, at CERN bits-console's) through GitLab's API with the console's read token: since that project is private, the anonymous reads failed (404, a redirect to sign-in) and the worker's `chat_docs` step failed every five minutes. Docs on other hosts are read as before, without a token. +- **[Improvement]** Orchestrator: Run now and Publish now record who asked as the `schedule.fired` event's `requested_by` (it was only in the text of `why`), and a schedules step that cannot read a community's configuration names the community with its schedules. +- **[Fix]** Orchestrator: an action's error (shown to the community's admins) and a worker step's (kept in the audit chain for good) are redacted as build logs are: a GitLab message or URL carrying a token or a password was kept as it was. The worker's heartbeat file is replaced whole, so the health check never reads it half-written. +- **[Fix]** Orchestrator: a deferred action (a withdrawal waiting for a repair, a CLI build whose BOMs have not arrived) writes an event only when the reason for waiting changes, not two every round, and fails once it has been deferred for 7 days: one stuck withdrawal wrote some 2,900 events a day for as long as it lasted. Database migration 37. +- **[Improvement]** Orchestrator: a worker that certifies (`BITS_ORCH_CERTIFY`) without an outside audit copy (`BITS_ORCH_AUDIT_URL`) says so: a warning when it starts, and `configured: false` with a `warning` in `GET /ops/outside`. Its chain was then checked only against itself and signing was never held, silently. +- **[Fix]** Orchestrator: when GitLab does not give a pipeline's variables, a build the queue started is recorded with the queued build's variables (checked by the console), not with what its name says: an admin of one community naming a build `[other] …` had it listed under the other during a GitLab hiccup, its logs readable by that community's developers. A pipeline the queue did not start still falls back to its name. +- **[Fix]** Orchestrator: with the build queue (`BITS_ORCH_QUEUE`), a pipeline the queue did not start (started by hand in GitLab, with variables the console never checked) is not certified, pre-approved or not: GitLab's project roles, not the console's policy, decided who could start it. Turning the queue on also refuses the certification of builds started before it, still waiting. +- **[Fix]** Orchestrator: a CI configuration GitLab rejects (a pipeline created failed with GitLab's `yaml_errors`, or a 400 saying so) holds its ref's builds (the other refs' go on) for a fix only until the build has waited 6 hours since it was queued, then it is refused: one such build was put back uncounted with the queue paused, for good, and a 400 counted five attempts of every build and refused them all within minutes (last night's nightlies). A pipeline created failed without errors (GitLab's job limit) still pauses the queue. +- **[Improvement]** Orchestrator: a build GitLab refuses to start (a CI configuration it rejects, say) is a warning in the worker's log and is listed in `GET /ops/failures` as `refused`, with why (redacted), for a week: it has no pipeline, so it was in no failure record, and a night whose every build was refused left nothing in either. +- **[Improvement]** Orchestrator: a refused build in the queue can be dismissed (`POST /ops/queue/{id}/dismiss`, by an admin of its community, a `queue.dismissed` event): it leaves the queue's listing, where it stayed for a day. Database migration 36. +- **[Feature]** `bits cvmfs-publish --require-signed-installed`: a publish to the final destination (no `{day}` in its path) stops before sending anything when a package an earlier run installed or packed on this host has no signed entry; one this run built or fetched still goes on its build manifest's `tarball_sha256`, and a nightly's dated path is as before. An earlier uncertified build's tree or tarball (a commit's CI build on the same host, say) was taken on its own build manifest's word. The build manifest records `packed_earlier` for such a tarball and `cvmfs_templates.day` for a dated path. +- **[Fix]** `bits prune` gives every install tree without a sentinel one, as if used now: a family's or another effective architecture's tree whose sentinel an older bits wrote elsewhere was never evicted (until built or reused again). +- **[Improvement]** bits-console backend: its approve page (`/approve`) and the dev approver page (`/`) are served with a Content-Security-Policy (scripts of the backend's own origin only, no framing), `nosniff` and `X-Frame-Options: DENY`, as bits-admin's are; their scripts moved to `/approve.js` and `/index.js`, without inline handlers. +- **[Fix]** Orchestrator: a certified BOM deeper than `/.json` (`lcg/sub/x.json`) is no longer flagged as having no group: bits takes the group from the first directory at any depth, as the set does. A BOM directly at the root still is, and a file that is not `.json` says bits does not read it. +- **[Fix]** `bits compliance --enforce --key`: every signed manifest that lists a restricted package is checked before anything is removed (it verifies, the key may sign what stays, bits-orchestrator did not number it), and when one fails nothing is: the objects were deleted first and the manifest then refused, so it named objects no longer there. +- **[Improvement]** `bits cvmfs-publish` and `bits publish PACKAGE` say, for each package published on its build manifest's `tarball_sha256` alone (no signed manifest certifies it yet, or `--trust-manifest none`), that it was: that checks the tarball is the one the build recorded, not that the build was trusted. REFERENCE says so too. +- **[Fix]** `bits cvmfs-publish` and `bits publish PACKAGE`: a package without a signed entry is refused when its architecture's signed manifest (or the shared one) is there but does not verify (a wrong trust key, an expired or tampered manifest), and the publish stops when none verifies: it fell back to the build manifest's `tarball_sha256`, as for a build not signed yet, so breaking a signed manifest had the build manifest's word taken. A guessed manifest name is there only once read: one the store lacks, or that cannot be fetched, is still just absent. +- **[Fix]** bits-console backend: pruning or pausing a build host (`host.prune`, `host.pause`) and deleting from the store (`/store-admin/delete`, `gc/apply`) need a touch of the admin's passkey for exactly that request (`/stepup/request`, `/stepup/approve`, the `X-Bits-Stepup` header; 428 without): an overall admin's session alone could empty every build host's work area and delete from the store. +- **[Fix]** bits-admin: removing an admin, inviting one, removing another admin's key and adding a further key of one's own need a fresh touch of one's own key (within a minute, for one step), as settings and store changes do: a session alone could remove every other admin, invite a name and enrol a key that then confirms everything. One's own key is removed without one; a session begun with an invite or the setup code adds a key without one, and a key's session whose admin has no key left does none of these steps. +- **[Change]** bits-admin's Settings page shows the facts and every setting the host helper marks `by_hand` (who and what the site trusts) without a field to change them: bits-services' helper refuses them, as it takes bits-admin's word; they change in `.env` on the host. The Store page says what the helper still takes from it (the S3 keys, tuning, the console's own keys); a first `config.json` is written by hand. +- **[Change]** A schedule's commit no longer triggers a publish: *On each commit: builds and publishes* (`on_commit: publish`) is retired, as a push to a followed branch was published to the final destination at once, under the standing approval, with no one looking. A commit builds (CI); publishing to the final destination is at the schedule's own days and time, or by Publish now, and publishes what the branches hold then. Database migration 35 turns such schedules' commits into builds and cancels their commit-fired publishing builds still queued; give a schedule that published only on commits a publishing time, then approve it again (the change gives it a new content hash). +- **[Fix]** Orchestrator: a queued batch's passkey approves the commit its ref is at, not only the ref's name, and a build whose pipeline GitLab starts at another commit (the branch moved in the up to 7 days it waited) is not certified, with the two commits in its entry and a `queue.moved` event; the approval's answer names the ref and commit. The CI definition that ran was the branch's head at start. When the commit cannot be read, the builds are queued without an approval (`approval_error`). Database migration 34. +- **[Improvement]** bits-console's approve page (`bits login`, `bits sign`, `bits certify`) shows where the request came from and when, as the console saw it (its address and time), beside what the terminal says about itself: a link and code sent by someone else carry that person's address. +- **[Improvement]** bits-console backend: a build pre-approval's passkey signs the build and its groups (a CLI one its packages too) with a nonce, and the record keeps the nonce, so its challenge can be recomputed from what the record names (`verify_binding`, as for standing approvals): a console pre-approval's challenge was a bare nonce. Checking the assertion itself against the passkey is still to come. The console backend's README says that the backend is inside the signing trust boundary: the worker certifies on approval records the backend writes. +- **[Fix]** Orchestrator: a schedule's publishing run publishes to the final destination only under a standing approval for the schedule's groups with a run left for each build, and each build takes one (a certifying build when it starts, as before). It needed any approval of the content: an approval "for 3 runs" published on every commit, time and Publish now until it expired, and one for another group published too. +- **[Fix]** bits-console backend: the GitHub proxy (`/gh/…`, no sign-in) takes only paths whose segments are plain GitHub names: `%252e%252e` reached it as `%2e%2e`, passed the `..` check, and `requests` turned it back into `..`, so anyone could make any GET of GitHub's API with the backend's token. +- **[Fix]** bits-console backend: the cleaning and redaction of build logs, CI journals and failure excerpts take time in proportion to the text: one long dotted or hyphenated word (4 KB of `token.` took 33 s, 1 MiB hours) stopped the orchestrator's worker, or every request while a job's log or a journal was redacted. Those two requests also redact off the event loop now. A private key whose BEGIN line follows a token's prefix is still found. +- **[Improvement]** bits-console backend: every store token it issues (`/store/token`, `bits login --group`, build jobs', store-admin actions with what they are for) is a `store.token` event in the orchestrator's audit chain, copied to audit-log, before it is handed out; when the chain cannot be written, no token (503). They were log lines only. +- **[Fix]** bits-console backend: one client address may hold at most `BITS_CLI_PENDING_PER_ADDRESS` (4) pending `bits login`, `bits sign` or `bits certify` requests in each store (429 beyond): the stores drop the oldest when full, so anyone could push out another person's pending login, and hold up to 64 manifests of 4 MiB. +- **[Change]** bits-console backend: `GET /preapproval/{build_id}` is gone (410): it answered anyone whether a user administers an approved build's groups, for the manifests CI's merge gate, which the orchestrator retired. +- **[Fix]** bits-console backend: a passkey file (`BITS_WEBAUTHN_CREDENTIALS`) that cannot be read stops the backend from starting: it was read as empty, and the next enrolment wrote a file with one passkey over all the others. Each write is synced and keeps the file it replaces as `.bak`. +- **[Fix]** bits-console backend: a passkey approval asks for user verification (PIN, biometrics) as `BITS_WEBAUTHN_REQUIRE_UV` checks it: asked as "preferred", a key could skip it and the approval then failed with no reason given. +- **[Fix]** bits-console backend: a build pre-approval (`/preapprove/request`) needs at least one group: with none, the admin check passed for anyone with a passkey, and the record blocked the build's real pre-approval for its lifetime. +- **[Improvement]** bits-console backend: the admin policy is resolved off the event loop in every async handler (builds, pipeline and file actions, pre-approvals, `bits sign` approvals, enrolment grants, CI variables): reading the group tree from GitLab, once a minute, stalled every other request meanwhile. +- **[Improvement]** The user guide and the console backend's README say what a console pre-approval vouches for: whatever the pipeline's jobs upload, approved before it exists, so the trust is in the build host and the CI file on a protected ref; a `bits certify` approval names the packages. +- **[Fix]** bits-console backend: a build started from the console (`/ops/build`, the build queue) has each variable's value checked, not only its name: recipe repositories on github.com, gitlab.cern.ch or gitlab.com over https, a prepub URL without shell characters, install and manifest paths that stay in their tree, names, flags and the publish path as the CI expects them (an empty value is the variable unset). A schedule's extra repositories are held to the same hosts. A community admin could give any string, and only the CI scripts and prepub stood between it and another community's tree. +- **[Change]** `bits sign --sign-via-service` is retired (with `--sign-service-url` and `--build-id`: accepted with a warning, ignored), as bits-console's `/sign/preapproved` is gone: sign with `--key` or `--sign-via-proxy`, or let the orchestrator certify. +- **[Change]** bits-console backend: the old signing routes are gone (`/sign`, `/sign/request`, `/sign/approve`, `/sign/preapproved`, answering 410), with `BITS_CI_SIGNERS` and `BITS_WEBAUTHN_REQUIRED`: the orchestrator certifies. They signed a CI token from any branch of the signer project, any manifest a console pre-approval's pipeline sent (up to 16), and, without `BITS_WEBAUTHN_REQUIRED=1`, a manifest with the bearer alone. `bits sign` (`/sign/cli`) stays until the orchestrator owns the set. +- **[Change]** `bits compliance --enforce`, `bits store rm --stale-boms` and `bits trace` send bits-console only the `bits login` session, which the console now requires: without one they no longer fall back to a GitLab token. `bits compliance --gitlab-token` is retired (accepted with a warning, ignored). +- **[Change]** bits-console backend: a caller is identified by a backend session only (the console's sign-in, or `bits login`); a GitLab token sent as the bearer is no longer verified against GitLab and taken. Every community's console signs in with sessions (`auth_mode: session`); a CLI without `bits login` is refused. +- **[Feature]** `bits logout` ends the `bits login` console session: it removes `~/.bits/console-session` and revokes the session on the console, so a copy of the file stops working too. +- **[Improvement]** When bits-console refuses the CLI (HTTP 401), `bits compliance --enforce`, `bits store rm --stale-boms` and `bits trace` say what to renew: the `bits login` session (the console restarted: run `bits login`) or the GitLab token (renew it, or run `bits login`). +- **[Improvement]** bits-console backend audit: a wrong code typed on the approve page is recorded (`approval_code_wrong`: the flow, a fingerprint of the request, what it asked for, the try, and whether it ended the request); a `bits login` record carries a fingerprint of the session it issued, and actions requested with one say `via: cli` with that fingerprint, and a refused group-less login is `login_denied`. +- **[Fix]** bits-console's approve page for a manifest signing (`python -m bits_helpers.sign_console`) asks for the code the terminal shows, as `bits login` and `bits certify` do: anyone could post a manifest and send an admin the link, and approving it signed that manifest. Three wrong codes end the request, and the terminal stops waiting. +- **[Feature]** `bits login` logs the terminal in to bits-console (`~/.bits/console-session`, 8 hours), with or without `--group` (now optional: with it, the group's store token as before). `bits compliance --enforce`, `bits store rm --stale-boms` and `bits trace` send that session to the console instead of the GitLab token (still taken without a login). +- **[Feature]** bits-console backend: a `bits login` approval also gives the terminal a console session (`BITS_CLI_SESSION_TTL`, 8 hours, kept in memory), the credential the CLI is to send instead of a GitLab token; a login without a group gets only the session, for anyone with an enrolled passkey. The session reaches only the requests the CLI makes (`/me`, `/ops/certified`, `/ops/trace` and the decertify actions), not building, signing or administering. +- **[Fix]** bits-console's approve page for `bits login` and `bits certify` asks for the code the terminal shows, and the console never sends it to the page: the page showed it to compare, so a link sent to an admin could be approved without the requester's terminal. Three wrong codes end the request. +- **[Change]** bits-console backend: the orchestrator certifies a build when its approver administers the build's group: it asked for an admin of every group with a package of that architecture in the certified set, so where two communities share an architecture only an overall admin could certify. The rest of the set is as it was signed. The signing key must still be allowed for every group. +- **[Fix]** `bits sign` and the orchestrator list an object two groups certify once for each group: the merge kept one entry for it, the group first seen, so one community's certification could take a package out of another's certified set. +- **[Fix]** A package built from source gets its `bits cleanup` sentinel (and its recorded size): `doFinalSync` imported `effective_arch` in two of its branches, which made the name local to the whole function, so the touch at its end failed with an UnboundLocalError that was swallowed. Only a later build that found the package installed touched it. A failed touch is now a warning. +- **[Fix]** `bits cleanup --dry-run` says what the real run would do: with `--min-free` it stops where enough would be freed (it named every package it may evict, as the free space never changed), `--retain --mark-published-from` writes no publish markers (it uses them in memory), and the leftovers report names no "GiB freed" (it said 0.0). +- **[Fix]** A build that fails records it in its build manifest: `status: failed`, with the package whose build script failed (`failed_package`) or why it stopped (`failure_reason`, e.g. Ctrl-C or an error). `fail()` was never called, so a failed build's manifest said `in_progress` for ever. +- **[Fix]** `bits sign --sign-via-service` does not follow a redirect from the signing service: urllib carried the CI ID token (the `Authorization` header) to wherever it pointed. A redirect is now an error. +- **[Fix]** A GitLab group in an admin policy (`&group`, `bits sign --require-approval`) counts no access-token bot (`group__bot_…`, `project__bot_…`) or service account (`service_account_…`, or a member GitLab marks `bot`): they counted as admins, and only bits-console's own group tree left the first kind out. +- **[Improvement]** `bits sbom` finds a package listed twice with a set, not by scanning the components so far (about a million comparisons for 1000 packages). +- **[Improvement]** `bits cvmfs publish` asks prepub whether each release link and module link is published 8 at a time: it asked once per package, one after the other. +- **[Improvement]** `bits compliance` (the audit and `--enforce`) reads the store's manifests 8 at a time: it fetched them one by one, one request per BOM per run. +- **[Improvement]** `bits sign` checks the store objects of a certification 8 at a time: it asked (and, for a new object, downloaded and hashed) one after the other. The orchestrator's certifier, whose digest cache is an sqlite connection, still checks one by one. +- **[Fix]** An SBOM leaves out a source URL's fragment when it carries a secret (`#access_token=…`), as it did the query; a secret in the URL's path cannot be told apart and stays. +- **[Fix]** `bits cleanup --retain --mark-published-from` keys a CVMFS publish marker by the build's architecture and `-`, which the bits-console publish record now names (`architecture`, `version_dir`): it used the console platform (`x86_64-el9` for `x86_64-el9-gcc14-opt`), so nothing was ever seen as published and the sweep released no certified content. A record entry that names a path is refused. +- **[Fix]** A network given in `--docker-extra-args` (`--network=…`, `--net …`) is the one the build container uses: bits appended `--network=host` after it, so both reached the engine. +- **[Fix]** A `%` in a `--reference-sources` path is taken as it is, and `--from-manifest` with a JSON file that is not an object says so: both ended in a traceback. +- **[Fix]** `bits sbom` (and the release SBOMs) render a manifest whose package `hash` is not a string, or whose licence nests more than 32 parentheses (not taken as an SPDX expression), instead of ending in a traceback. +- **[Change]** `bits cleanup --retain` removes a store or BUILD folder only when its name is a bits hash (40 hex digits), as the leftovers sweep does: it took 40 to 64. +- **[Fix]** `bits compliance --enforce` and the other orchestrator actions report an action the console answers without an id as it is, instead of a traceback (KeyError). +- **[Fix]** Two builds of one target started in the same second write their own build manifests (`bits-manifest--