Skip to content

v0.55.0: the shell door plans before it runs (add --confirm to scripts that mutate)

Choose a tag to compare

@john-broadway john-broadway released this 19 Nov 22:52

What changed for an operator

Two things can break a script, and both are deliberate.

  • proximo-core no longer runs a mutation given no flag. A POST, PUT, DELETE or undo prints its plan and sends no write. Add --confirm to every shell mutation you mean to run. A bare mutation whose plan is allowed exits 3 with one line on stderr, so a cron job written for the old behaviour fails loudly; one the spine refuses still exits 2. --plan prints the plan and exits 0, and wins if both flags are given. Reads are unchanged, and so is every other door: they already returned the plan first.
  • audit_verify answers ok: null, not true, when there are no rows to verify, on every door. If you test ok == true on a fresh box, expect null.

One more can refuse a box that worked: an arm source that is group- or other-readable no longer arms. chmod 600 it.

New: proximo-core audit verify and proximo-core audit entries (the same two functions every tool door serves), and one advisory line in proximo doctor naming which kinds of file the door's own user can write.

No stored format changes and there is nothing to migrate.

The release

The shell door plans before it runs. Breaking: this changes what a script does. Until now proximo-core pve POST ... ran the mutation, the one door where a call with no confirmation did; every other door returns the plan first. A POST, PUT, DELETE or undo on the shell now prints its plan, sends no write, and runs only with --confirm. A bare mutation whose plan is allowed exits 3, not 0, with one line on stderr, so a cron job written for the old behaviour fails loudly and does not read success for work that did not happen; one the spine refuses still exits 2. --plan still prints the plan and exits 0 when it is allowed, and wins when both flags are given. Reads are unchanged. Add --confirm to every shell mutation you mean to run.

A missing ledger is not called verified. Breaking for a caller that tests the answer: audit_verify on a box with no ledger answered ok: true. A fresh box and a box whose ledger was deleted answered the same bytes, and true called both a chain that holds. It now answers ok: null with a note, on every door, for a ledger or a rotation archive with no rows; a caller that tested ok == true on an empty box must expect null, and proximo-core audit verify there exits 2. proximo doctor says no rows for such a chain, not ok, and so does doctor --receipt. A pinned head (expected_head) is still what tells a deleted ledger from one never written.

Sentences made true. Two readers who had not built Proximo read the public repository and held each safety claim to the code. Where a sentence said more than the code does, the sentence changed. The README no longer says no mutation runs on a first call: a call with confirm=true runs, and what is guaranteed is that its plan is written to the ledger before anything moves. A plan shows the live target where the vendor publishes a read for it, which is not every address. ARM is not a control that ships off: with no arm configured, no mutation runs. The guest lanes' allowlist lists guests, not commands, and inside an allowed guest the command is the caller's; the node lane has a switch and no allowlist; a lane's read is judged as a read, not as a mutation. UNDO has an opt-out and SECURITY.md no longer calls it structural. The same corrections are in AGENTS.md, SECURITY.md, docs/SETUP.md and the generated docs/arena.md.

The shell door verifies the ledger. proximo-core audit verify [--expected-head H] [--path ARCHIVE] and proximo-core audit entries [--limit N] [--target T] [--action A] [--mutations-only] call the same two functions every tool door serves. audit verify exits 0 only when the chain was walked and holds; a broken chain, or a ledger that cannot be read at all, exits 2 with the answer printed, so a script reads why. proximo audit ... is the same verb. The README said audit_verify was on every door; it was on four.

An arm source others can read does not arm. Breaking for a box whose arm source is group- or other-readable: it armed before and is refused now. The arm source is the write token at rest. A served token has a mode floor; the arm source had none, so a group- or other-readable file armed. It now reads as not armed and the reason says chmod 600. If your arm source is not private, mutations are refused until it is.

A mutation's answer says when its outcome was not recorded. The row written before a mutation is required: without it the mutation does not run. The row written after is best-effort, and when it failed the answer looked like any other. The answer to a mutation that ran now carries receipt: outcome not recorded ..., and no cap trims that line. Not covered: the row for a call the vendor refused, and the row written when a waited task ends; a failure to write those is still silent.

Thirteen more reads carry the untrusted label. PDM's journal, syslog, task logs and package changelogs, and PVE's cluster log, firewall logs and replication log, were served without it: the label's record was built from what the 0.44 tools read, and none read these. PDM's are labelled on the other three products already. With PROXIMO_TAINT_TRACK on, reading one now taints the session like its siblings.

The doctor says what its own user can reach. The pillars hold against a model through the door. A process running as the door's own user is not through the door: it can edit the env file for the next start, and read the ledger key or the arm source. proximo doctor now carries one advisory line naming which of those kinds of file its user can write (never their paths). Expect it on almost every install: a door owns the ledger key it mints. It checks ownership and write permission, not what the user can merely read. The report gains the key same_user, and doctor --receipt the code same-user-can-write. On PMG the wire's own login for a session ticket is not a ledger row, and SECURITY.md now says so.

Two numbers are checked. The public CI runs pyright (the README says "pyright clean" and only the release script checked it), and the release script counts the suite and refuses a README that states another number.

Where to read more