Repository navigation
v0.5.0
Summary
This is a breaking release. If you used zones, read Upgrading before you install it.
mash v0.5.0 does two things: it retires zones, and it tightens security in the parts that remain.
Zones are gone. Zones were our first attempt at letting you control which agents may mail which other agents. In practice they didn't deliver what we wanted from a security policy: they were hard to reason about, they changed the shape of every mail address, and they didn't give a clean answer to "who is allowed to talk to whom". Rather than keep patching them, we're retiring them. A simpler, clearer way to say who can reach whom is planned for 0.6.0.
Until then the rule is plain: an agent's address is its fence. Each agent has one inbox, and every agent under the same owner can reach it. All mail uses the same five-part address again (agents.mail.<agent>.<owner>.<name>), with no zone in the middle.
Also in this release:
-
A record of every credential.
mashctlnow records each credential it hands out.mashctl issued checkcompares that record with who is actually connected and flags anything mash didn't issue. Revoking a credential is also safer: mash refuses when the record shows the revocation wouldn't actually take effect. -
Stricter settings you can turn on:
- refuse unencrypted connections to remote servers (
MASH_REQUIRE_TLS); - never fall back to a less reliable delivery path (
MASH_SPOOL_REQUIRED); - have the Claude Code plugin refuse a mash binary it can't verify (
MASH_PLUGIN_REQUIRE_VERIFIED).
All of them are off by default.
- refuse unencrypted connections to remote servers (
-
A look inside an inbox.
mashctl inbox inspect <agent>shows the mail stored for an agent and whether it was delivered, without changing anything. -
An easier start. The README now opens with a quick start for one person on one machine, with no account needed.
-
Fixes:
--helpafter any command now prints help and does nothing else. Before,mashctl init --helpraninit.mashctl init --localrespectsXDG_CONFIG_HOME.- Long or odd prompts are handled safely.
Every download comes with a GitHub build attestation; verify it before you run the binary.
Upgrading
If you never used zones, upgrading is two steps:
- Install v0.5.0 (the
mashbinary and the plugin). - Run
mash admin initonce. It creates the new credential record and hardens a setting on the server.
Also note: mashctl add and mashctl reissue now need the system account's credentials, so that they can check no zone policy is in force. Pass --sys-creds FILE, set MASH_SYS_CREDS, or keep a sys.creds file next to your admin credentials.
If you used zones, the order matters:
- If you applied a zone policy, stay on v0.4.0 for now. There's no automatic way out of an applied zone policy, and
mashctl unzonerefuses to touch it. Runmashctl auditto see which case you're in. - Otherwise, remove zones before you upgrade the agents:
- Upgrade only
mashctlfirst. - Run
mashctl unzone <agent>for each zoned agent. It moves the agent back to the plain address and keeps its stored mail. It is safe to run twice. - Give each agent a fresh credential: run
mashctl reissue <agent>where its credentials file lives. Add--widenif it refuses because the agent's old permissions were narrower. - Then upgrade the agents. Until every zoned record is converted,
mash serverefuses to start.
- Upgrade only
- Update your scripts.
- The zone options are gone:
--zone,set-zoneand--policy. - So are the v0.4.0
mashctl policy …commands. - The table in Upgrading admin tooling across zone removal lists each changed command.
- The zone options are gone:
- Run
mash admin initonce.
Plugin pinning. The plugin in this release isn't yet pinned to a specific mash binary. A follow-up plugin release, 0.5.0-pin.1, pins it to v0.5.0. Turn on MASH_PLUGIN_REQUIRE_VERIFIED only after you've updated to that plugin.
Details
Added
- The credential record.
mashctlrecords every credential it issues (fromadd,reissueandinit) in a bucket that only the admin can write.mashctl issued listshows the record.mashctl issued checkreports connected credentials that mash didn't issue, or that it has revoked.- ADR 0101 explains the design.
MASH_REQUIRE_TLS. Refuses plain-text connections to any host that isn't your own machine.mash statusnow warns about a plain-text remote address in every form (ADR 0108).MASH_SPOOL_REQUIRED. If mail can't be handed to the session safely, it stays in the inbox and you're told, instead of being delivered another way (ADR 0107).MASH_PLUGIN_REQUIRE_VERIFIED. The plugin refuses an unpinned plugin or an unverified binary, instead of falling back to whatevermashis on your PATH (ADR 0096).mashctl inbox inspect <agent>. Shows an agent's stored mail and its delivery state, read-only. Add--jsonfor scripts.- A lease bucket warning. An agent warns at startup, and
mash statusshows a line, when a server bucket still needs hardening.mash admin initfixes it.
Changed
- Zones are removed (ADR 0091):
- every mail address has five parts;
set-zone,--zoneand the zone policy file and its commands are gone;mash whono longer shows a zone.
- Agents are declared with
mashctl add. It creates the agent's record, inbox and credential in one step.reissue,retire,labelandunlabelall work from that record. - Bulk changes ask first.
mashctl reissue --alland--changedlist what they would change and only act with--yes. A reissue never quietly widens an agent's permissions. - A clearer refusal. When a send is refused, the message now says the credential may be out of date and suggests asking the admin to check it.
- The README starts with a quick start for one machine.
nats-serveris listed as a prerequisite.
Fixed
--helpafter any command (mashormashctl) prints that command's help and does nothing else. Text later on the line, such as a message tomash send, is never mistaken for--help.- Revocations that wouldn't take effect.
deprovision,retireand a rotatingreissuerefuse when the credential record shows that a credential was issued after the revocation time. NATS would otherwise keep honouring that credential. If the record can't be read, they change nothing (ADR 0115). - Prompts and
mash who.- Control characters in a live prompt and in
mash whooutput are shown as visible escapes. - A prompt over 32 KB is refused with a clear error instead of being cut off.
- Control characters in a live prompt and in
mashctl init --localrespectsXDG_CONFIG_HOMEon a first run and prints where it will write.- System credentials.
mashctlrefuses system credentials that other users can read. - The upgrade check won't start an agent if it can't read a record that might still be zoned.
Full changes: v0.4.0...v0.5.0