Skip to content

v0.5.7

Choose a tag to compare

@github-actions github-actions released this 23 Nov 03:20
· 1272 commits to main since this release
Immutable release. Only release title and notes can be modified.
bc19c06

Summary

mash 0.5.7 fixes one thing: mashctl can now set up mash on a NATS server that requires users to be signed by an account signing key. If your server does not set strict_signing_key_usage, you need do nothing: the one change you may notice is that revoking an endpoint no longer stops at an account signing key that mashctl did not make.

Upgrading

Install mash and mashctl from the same release, as before. Nothing in the setup file, the key store or your endpoints needs to change.

If your NATS operator has strict_signing_key_usage: true, 0.5.6 could not set mash up: mashctl endpoint create made users the server refused, and mash doctor showed the sign-in failing with "the server refused these credentials". To fix it, add one key to your setup file, signing_key, pointing at a 0600 file that holds one of the account's signing seeds, then run mashctl init --config FILE again. init checks that the key is one of the account JWT's signing keys. Then reissue the endpoints you made with 0.5.6 (mashctl endpoint reissue); users already signed with the account's identity key stay refused until you do. Keep account_key as it is: it is still the account's identity seed.

What changed

  • signing_key, an optional setup key. When set, mashctl signs each endpoint's user with that key and names the account as the issuer, which a strict server requires. When it is not set, nothing changes.
  • Revoking an endpoint works on an account with signing keys mashctl did not make. A plain signing key already in the account JWT is kept as it is when endpoint delete or endpoint reissue rewrites it; before, the command refused. The cost: mashctl now signs, with the operator key, an account JWT that holds a plain signing key it did not make, so whoever added that key can still make users for the account and mashctl will not remove it. Scoped keys it did not make are still refused (ADR 0158).
  • The documentation says what a strict server needs (Bring your own NATS server, Operating mash). Issue #1239 is closed.

Known issues

These are the 0.5.6 known issues that are still open, and the ones found after it. Each has an issue; the issue is the place for detail and any workaround. Listed by what you would notice.

Mail and trust:

  • #874: refused unverified mail: the sender is not told, and the mail is still stored.
  • #935: an administrator cannot see which messages an endpoint refused.
  • #958: mash inbox may count unverified mail that serve has not yet refused.
  • #990: mash read at a shell can say "refused" for mail serve delivered under --accept-unverified.
  • #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
  • #883: Mash-Kind is unsigned.
  • #866: mash read from a shell with no session does not tell the server until the next session starts.
  • #955: mash inbox counts urgent mail among only the newest 200 messages.
  • #1070: mash inbox gets slower with the span of the mailbox's messages, not the size of the page.
  • #1069: mash doctor's refused-mail count can stay one low after serve is killed mid-refusal.
  • #1054: mash inbox and the wake still count older waiting mail from a deleted sender that the list leaves out.
  • #918: mashctl's online (holds the lease) and mash who's online (heartbeat) can disagree for up to 90 seconds.
  • #1039: mash cannot discover endpoints served by a SAP SDK host; the fix is planned on mash's side after 0.5.6.

Setting up and installing:

  • #878: one config folder serves one mesh; a second mesh needs --config-dir.
  • #965: mashctl init --config refuses a folder set up for a different server.
  • #1065: mashctl init prints an unknown setup key in its error.
  • #865: the NATS helper has no boot start, upgrade, backup, other-machine listening or key retirement.
  • #995: mash-local-nats-setup.sh --remove refuses when a later instance took a stopped folder's recorded port.
  • #1093: mash-local-nats-setup.sh: after a run was killed and left its lock behind, two runs started at the same moment can both take the lock, and both then start, stop or remove the same local server. Someone who runs two of --start, --stop and --remove at once, just after a killed run, meets this; both runs are by the same user. Workaround: run one lifecycle command at a time; after a killed run, run --stop, then --start, one after the other.
  • #1094: mash-local-nats-setup.sh --start says "already running" whenever the recorded server process is alive, without checking that the server answers, so a server that is up but not serving (one stuck while starting, for example) is reported as running. Someone whose local server process is up but not serving, who runs --start to bring it back, meets this. Workaround: run mashctl status; if it is not ok, run the script with --stop; if that says it did not stop, run kill -KILL on the process number in <dir>/server.pid, then --stop, then --start, then mashctl status again (it says ok).
  • #1099: a failing mash doctor ends 1 problem. with no fix, though its help says it tells you how to fix what is wrong, and some hints point at a command that gives the same answer: mash status hints mash doctor, and mashctl doctor on a down server hints mashctl status, which only checks. Anyone who follows the hints after a failure meets this, and an agent that follows every hint can loop. No workaround to run; read the failing row itself, which names the fault. For a local server that is down, the fix is mash-local-nats-setup.sh --start, which neither command prints.
  • #959: install.sh checks checksums only when gh is missing or too old; the one-line commands run a script before you can read it.
  • #1071: install.sh killed between its two moves leaves mash and mashctl at different versions; run it again.
  • #1153: gh 2.48 to 2.67 has gh attestation but no --source-ref, so install.sh stops with "the attestation of the release's SHA256SUMS did not verify: nothing was installed". The message wrongly blames the release. Workaround: use gh 2.68.0 or later, or take gh off PATH.
  • #1072: install.sh does not pin the source commit (--source-digest) when it verifies attestations.
  • #1231: on a personal Claude account, --channels plugin:mash@mash alone does not load mash's channel, so an idle session is not woken; the wake needs --dangerously-load-development-channels plugin:mash@mash, with Claude Code's warning screen at every start, and in a Team or Enterprise organisation an administrator must add mash to allowedChannelPlugins. Without a channel, mail arrives at the next prompt or tool call. The setup skill writes one command per agent with the right flags (wake an idle session).
  • #875: mash doctor has no idle-wake (channel) or plugin check.
  • #993: on a host without Claude Code hooks, doctor's delivery row warns for as long as it runs.
  • #1008: a first mash join interrupted partway leaves a folder that neither a retry nor --replace finishes.
  • #1013: a join file of another account on the same servers can join a folder that already holds an endpoint.
  • #1097: mashctl status prints nothing and exits 0 when no server is configured. Someone running it before mashctl init meets this, and a script or skill that reads silence as "ok" is misled. Workaround: run mashctl doctor, whose config row fails: config FAIL no servers in the configuration, then 1 problem. and hint: mashctl init --config <file>, exit 1.
  • #1062: mash join adds a certificate authority to a folder that has servers but no endpoint.
  • #1066: mash join's rollback can remove a replaced creds file.
  • #1063: the migration script can write outside the mash folder if a parent path is replaced.

Signing keys, new in 0.5.7:

  • #1246: if both signing.nk and signing.pub are lost from the key store, mashctl has no record that a signing key was configured and signs endpoint users with the identity key again, which a strict server refuses. Losing signing.nk alone makes mashctl refuse instead. Workaround, not yet run: run mashctl init --config FILE again with signing_key set; until then mash doctor shows the sign-in failure.

Setup, found after 0.5.6:

  • #1240: install.sh refuses ~/.local/bin when Claude Code's installer left it group-writable (mode 775), then refuses ~/.local for the same reason. Workaround, run on a clean Debian 13 with Claude Code installed first: chmod go-w ~/.local ~/.local/bin, then run the installer again.
  • #1241: the setup skill needs unzip or python3 to unpack the nats download, and a clean Debian 13 has neither. Workaround, run on a clean Debian 13 without sudo: the skill took the nats .deb release asset, checked it against SHA256SUMS and unpacked it with dpkg-deb -x. With sudo, install unzip first.
  • #1242: mash join with a JWT whose name differs from the address says only "not a join file this mash can read". No workaround has been run; make the join file's JWT name the address.

Endpoints and credentials:

  • #879: the join file can carry a seed in clear text, with no expiry or single use.
  • #867: MASH_DANGEROUSLY_SKIP_NATS_ENCRYPTION is honoured when inherited, with no fresh choice.
  • #880: with several servers, revocation must reach every one; there are no failover rules.
  • #912: endpoint delete has no drained-delete guard; mail arriving between a drain and a delete is lost.
  • #872, #767: two machines reissuing one endpoint at once can still interleave. The reissue lock covers one machine only.
  • #765: a killed same-host endpoint create leaves an unused issue record.
  • #1081: if mashctl endpoint delete fails after the key was cancelled, its error is long, internal and writes the address with underscores; run the same command again, as it says (revoking again is safe).
  • #1055: the everyday commands say "no credentials here" for an endpoint deleted on this machine; mash doctor says it was deleted.
  • #1056: doctor and status trust a local <creds>.deleted file to say an endpoint was deleted (a same-user risk).
  • #1064: retiring an endpoint keeps the revoked seed on disk as .creds.deleted.
  • #869: standing risk: anything running as the same OS user can do what that user can (accepted for mash).

Found after the gate:

  • #1260: mashctl init prints the full signing public key on its result line, which runs over 80 columns. It is cosmetic and needs no workaround.
  • #1262: the policy document still uses the range field and flag; it is renamed in 0.5.8.

One more thing you may see: after a mash send that timed out, the server's log can show a filtered _MASH.settle.* line. It is expected and harmless.

Some tests are flaky in CI (#842, #861, #899); they do not affect the product.

Links

Full changes: v0.5.6...v0.5.7