Repository navigation
v0.6.0
Summary
mash 0.6.0 reads the sender of every message the way the SAP Go SDK does, and that is strict: ten kinds of sender header that older mash accepted are now refused, on live prompts and on mail already stored. See Upgrading. If every endpoint on your server runs mash, you will notice little, because mash writes headers the strict reader accepts. Mail that is refused is no longer hidden: mash inbox and mash read show it as a refused row with the reason and never its body, and mash status --detail, mash doctor and mashctl endpoint inbox count it. mash doctor also checks every endpoint when you have several and none is chosen, and says which mash the plugin runs. Security policy is planned and is not part of this release.
Upgrading
This step is one-way: a problem found after upgrading is fixed by the next release; you do not go back to 0.5.10.
On each machine with endpoints, then on the administrator's machine, in this order. The full steps, in order, are on the compatibility page; in short:
- Check first:
mash version,mash doctorand, as administrator,mashctl doctor. Good is your current release and each doctor ending with no problem and exit code 0. - Install
mashandmashctl0.6.0 from the same release, with the README's install steps. Endpoints, keys and mail stay where they are. - Update both plugins,
mashandmash-setup: at a shellclaude plugin update mash@mashandclaude plugin update mash-setup@mash. The 0.6.0 plugin that runs the 0.6.0 program is 0.6.0-pin.1, published shortly after the release. A plugin update before then installs 0.6.0 but still runs 0.5.10, so update once more when 0.6.0-pin.1 is out. - Restart each Claude Code session. A session that is already open keeps running the version it started with until you restart it.
- Check again as in step 1;
mash versionnow names 0.6.0.
Machines at mixed versions send and read each other's mail on one server; a machine left behind keeps working. Mail that a 0.5.10 endpoint sent is read by the 0.6.0 rules when a 0.6.0 endpoint receives it.
If you send mail from something other than mash: a message whose Agent-Sender header has any of the ten shapes below is now refused even when its signature is valid. Mail written by mash is not affected.
What changed
Changed
- The ten sender headers that are now refused. The header is refused when it is over 2,048 bytes; when its
tsis not in UTC (Z); when itsnamehas a control character, is over 64 characters, or has a broken character escape; when a field appears twice; when itssubhas a space; when itssigis not 64 bytes of base64url text; when it is empty; or when a message carries two. Older mash read these asverified,forgedorabsent, or took the first or last value. A header with noAgent-Senderat all is stillabsent. A few more inputs now read as malformed too: invalid UTF-8, an empty or control-charactersub, and an unsigned claim with a badtsornonce. A number written1.0or1e0forvnow verifies. - A live prompt with a malformed sender header is refused with status 400,
malformed Agent-Sender header. Two of the ten shapes used to get 401; they now get 400. A prompt that is replayed by a sender who is not in the directory now gets 403 both times; the replay used to get 401. A sender that sends too many prompts too fast is refused with status 401 and the reasontoo many recent prompts: try again shortly; it used to be told a signed header was required, although it had signed.mash promptnow starts every error line witherror:where it used to start some withmash:, for exampleerror: prompt refused: 400 malformed Agent-Sender header; a script that matches^mash:on its output will miss these lines. mash doctorchecks every endpoint when you have several. It used to stop and ask for--endpoint. Now it checks each installed endpoint and prints one row for each, with the number of problems and warnings and the first problem, then names the command that shows the first endpoint with a problem. It exits 1 if any endpoint has a problem.--jsonprints each endpoint's report and the totals.- The plugin re-checks its downloaded mash once per session, and
mash doctorsays which mash runs. When a session starts, the plugin confirms its cached copy still matches the release it pins, and replaces a copy that does not (the old file is kept beside it).mash doctorshows alauncherrow:okfor the pinned mash, and a warning when the plugin fell back to the mash on your PATH (#1290). mash doctorwords the refused-mail row differently. It readsno mail was refusedor4 messages were refused, with each reason on a line below, and the row isokwhatever the count; it used to speak of unverified mail only.mash promptexits 2 for a wrong command line before it reports a configuration problem.mashctl initno longer creates the unusedmash-adoptionbucket. A server set up earlier keeps that bucket; nothing reads it, and you can delete it; the compatibility page says how.
Added
- Mail that mash refuses is now listed, not hidden. A message with a faulty header, or one that could not be verified, shows in
mash inboxandmash readas arefusedrow with its reason, and never with its body.mash status --detailandmash doctorcount them, andmashctl endpoint inboxadds areasonto each refused message. A refused message is not counted as waiting. - The first start checks stored mail. When a session starts, mash reads the mail already stored for the endpoint once, before it delivers, and lists what it refuses.
mash doctorhas rows for that check, and says when the check is still running or was skipped because the state folder cannot be written. mashctl endpoint inbox --jsonshows when each message arrived. Each message has awhenfield: the time the server stored it, in RFC 3339 and UTC, with a fraction of a second when there is one. The text table is unchanged.
Fixed
- When mash cannot create its state folder,
mash statusno longer says ready andmash doctorreports a failed delivery row that names the folder it cannot write. This is when mail waits for the spool, as the plugin sets it up (MASH_SPOOL_FROM_START, orMASH_SPOOL_REQUIRED); otherwise mail stays on the channel and is still delivered. Before, the session got no mail while both said all was well. - A plain
mash statusrun outside a session now sees a state folder mash cannot create. It checks the folder without writing to it, and says mail cannot be stored when the spool setting (MASH_SPOOL_FROM_STARTorMASH_SPOOL_REQUIRED) is set where the shell can see it. See Known issues for when it does not. - A restarted endpoint refuses a prompt signed before it started. The message tells the sender to send the prompt again. See Known issues for the case that is still open.
Verify your download
Every download has a build attestation; verify it before you run it, with the steps in Verify what you download and Verify a release.
Known issues
There are 2 known issues. Each has an issue; the issue is the place for detail and any workaround.
- A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. A prompt signed before a restart is refused otherwise. #1829
- A plain shell reports a state folder mash cannot create only when the spool setting is visible to it.
mash statusandmash doctorat a shell report it whenMASH_SPOOL_FROM_START(or itsconfig.jsonkey) is set where the shell can see it; a session always reports it. #1907
What is not in this release
Security policy, a way to narrow who may mail whom inside an owner, is planned and is not in this release. Nothing else is promised here.
Links
Full changes: v0.5.10...v0.6.0