Repository navigation
v0.5.7
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,mashctlsigns 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
mashctldid not make. A plain signing key already in the account JWT is kept as it is whenendpoint deleteorendpoint reissuerewrites it; before, the command refused. The cost:mashctlnow 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 andmashctlwill 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 inboxmay count unverified mail thatservehas not yet refused. - #990:
mash readat a shell can say "refused" for mailservedelivered under--accept-unverified. - #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
- #883:
Mash-Kindis unsigned. - #866:
mash readfrom a shell with no session does not tell the server until the next session starts. - #955:
mash inboxcounts urgent mail among only the newest 200 messages. - #1070:
mash inboxgets 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 afterserveis killed mid-refusal. - #1054:
mash inboxand the wake still count older waiting mail from a deleted sender that the list leaves out. - #918:
mashctl's online (holds the lease) andmash 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 --configrefuses a folder set up for a different server. - #1065:
mashctl initprints 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 --removerefuses 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,--stopand--removeat 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 --startsays "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--startto bring it back, meets this. Workaround: runmashctl status; if it is not ok, run the script with--stop; if that says it did not stop, runkill -KILLon the process number in<dir>/server.pid, then--stop, then--start, thenmashctl statusagain (it says ok). - #1099: a failing
mash doctorends1 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 statushintsmash doctor, andmashctl doctoron a down server hintsmashctl 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 ismash-local-nats-setup.sh --start, which neither command prints. - #959:
install.shchecks checksums only whenghis missing or too old; the one-line commands run a script before you can read it. - #1071:
install.shkilled between its two moves leavesmashandmashctlat different versions; run it again. - #1153: gh 2.48 to 2.67 has
gh attestationbut no--source-ref, soinstall.shstops 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.shdoes not pin the source commit (--source-digest) when it verifies attestations. - #1231: on a personal Claude account,
--channels plugin:mash@mashalone 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 toallowedChannelPlugins. 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 doctorhas 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 joininterrupted partway leaves a folder that neither a retry nor--replacefinishes. - #1013: a join file of another account on the same servers can join a folder that already holds an endpoint.
- #1097:
mashctl statusprints nothing and exits 0 when no server is configured. Someone running it beforemashctl initmeets this, and a script or skill that reads silence as "ok" is misled. Workaround: runmashctl doctor, whose config row fails:config FAIL no servers in the configuration, then1 problem.andhint: mashctl init --config <file>, exit 1. - #1062:
mash joinadds 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.nkandsigning.pubare lost from the key store,mashctlhas no record that a signing key was configured and signs endpoint users with the identity key again, which a strict server refuses. Losingsigning.nkalone makesmashctlrefuse instead. Workaround, not yet run: runmashctl init --config FILEagain withsigning_keyset; until thenmash doctorshows the sign-in failure.
Setup, found after 0.5.6:
- #1240:
install.shrefuses~/.local/binwhen Claude Code's installer left it group-writable (mode 775), then refuses~/.localfor 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
unziporpython3to unpack thenatsdownload, and a clean Debian 13 has neither. Workaround, run on a clean Debian 13 without sudo: the skill took thenats.debrelease asset, checked it againstSHA256SUMSand unpacked it withdpkg-deb -x. With sudo, installunzipfirst. - #1242:
mash joinwith 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_ENCRYPTIONis honoured when inherited, with no fresh choice. - #880: with several servers, revocation must reach every one; there are no failover rules.
- #912:
endpoint deletehas 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 createleaves an unused issue record. - #1081: if
mashctl endpoint deletefails 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 doctorsays it was deleted. - #1056:
doctorandstatustrust a local<creds>.deletedfile 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 initprints 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
rangefield 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