Repository navigation
docs: onboarding a ClankMail peer (docs/clankmail.md) - #414
Conversation
A step-by-step guide for pairing two operators' muster chiefs over ClankMail with the muster-clankmail plugin: the trust model, keys and the handle ceremony, the plugin token, running it beside muster (container, compose, Kubernetes notes), pinning peers, the first message, day-to-day approvals and key changes, and the error strings the plugin emits. There is no outbound-first path yet (the plugin only replies; compose drafts are not shipped), so the guide gives a small program that signs a first message with the chief key using the public ClankMail library. docs/plugins.md said a thread is bound by muster-clankmail's `send --bind <session>`; that command does not exist. It now says the plugin has no send command and the first sender binds the thread by hand. Verified locally against a throwaway hub (clankmail main 85b8d43) and the image built from this branch: keygen, identity claim/grant, show, /health, peer verify, requests, a stranger listed and not delivered, the hand-signed first message delivered as sender_verified on its own root, an approved reply reaching the other side on the same root, and the config/disabled-peer/E_AUTH strings in the troubleshooting table (muster was a stub answering the plugin routes, not a real server). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Audit round 0 (requirements & deletion pass) at Ledger: round 0 · requirements: 6 (unattributed: 0, UNATTRIBUTED-UNKNOWN: 6) · deletion candidates: 2 |
|
Owner's decision on round 0's open premise: |
Replace the embedded hand-signed Go program in section 3 step 5 with a link to the tested go/examples/send-first program in the ClankMail repo (ZacxDev/clankmail#15) and its go run command. The side that starts the conversation sends the first message with it; the other side replies through its plugin. --max-body 16384 covers muster's 16 KiB chief-body limit, so the separate limit sentence is dropped. Drop the stale "v0.134.0 and earlier do not contain it" release sentence and keep only the `version` probe. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Audit round 1 (full checklist) at |
…hange, RBAC caveat Round-1 audit fixes for docs/clankmail.md: - R1: replace the private hub domain (9 sites) with the placeholder hub.example in HUB_URL and HUB_NAME; say the real hub comes from the inviter and both chiefs must use the same hub. leakscan with the denied-identifier key active: 9 findings at b0f5e3b, 0 here. - Y2: no release (latest v0.135.0) carries the plugin or #409's thread routing; build server and plugin from main, and name what breaks on an older server. Compose: MUSTER_IMAGE/MUSTER_VERSION for the local image, and a full plugin service with image and healthcheck override. - Y3: after editing CLANKMAIL_PEERS, re-create the container (docker rm + run, compose up -d, or the Deployment env); docker restart keeps old env. - Y4: namespace isolation holds only with the least-privilege provisioner layout; the default ClusterRoleBinding also grants secrets get in every namespace, so the chief-key Secret is readable without exec. - Nit: "unmarked (verified)" -> "marked sender_verified: true". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Round 0 dispositions: D1=applied (b0f5e3b: the embedded first-message program moved to ZacxDev/clankmail#15 as go/examples/send-first; this doc links it), D2=applied (b0f5e3b: the stale release-version sentence removed; only the version probe kept). |
|
Audit round 2 (delta |
… compose exec - R-A: a namespace of its own does not keep the chief key from muster in either provisioner layout. Default: muster's SA holds secrets and pods/exec everywhere. Least-privilege: it keeps cluster-wide rolebindings create + bind on muster-agent-namespace (and namespaces delete), so it can grant itself the plugin's Secret. Name what isolates it (another cluster, or the provisioner.md admission policy with the plugin outside the agent prefix and muster's namespace) and the consequence (a compromised muster-server can sign as @<owner>/chief). Same correction in configuration.md's admin-socket note. - Y-B: only UNVERIFIED senders are marked in a turn; sender_verified is a field on the stored message and the tools' JSON. - Y-C: compose exec form for the admin commands; publish 127.0.0.1:8080 on the compose service; kubectl exec form in pairing step 4. - Nits: MUSTER_VERSION=local also tags stt-cohere's image; a k8s rollout follows only for env in the pod template, not envFrom ConfigMaps. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Re-post of the round-2 claims with numbered lines (the earlier block used letters, which the audit tooling cannot parse). Same claims, same audited tip. |
|
Audit round 3 (delta |
configuration.md: the admin-socket remedy now also requires the plugin's namespace to be separate from muster's own, where deploy-key pools have muster read Secrets even under the least-privilege layout. clankmail.md: a rollout follows only for a literal env value; a ConfigMap read through envFrom or env[].valueFrom.configMapKeyRef needs a manual rollout restart. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ZacxDev/clankmail#15 merged and v0.3.1 is the first tag carrying the example: the link now points at tree/v0.3.1 and the go run is pinned to @v0.3.1 (verified to resolve through the module proxy and to parse the documented flags). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adds
docs/clankmail.md, a step-by-step guide for an operator who runs their own muster and wants their chief to exchange signed agent-to-agent messages with another operator's chief over ClankMail throughmuster-clankmail(#410) and a ClankMail hub. The examples use the placeholder hubhub.example; the doc says the real hub's name and URL come from whoever invites you, and both chiefs must use the same hub.Sections, in order: the trust model, setup (plugin image/binary, keygen,
identity claim/grant, theclankmailplugin token, env, a generic container plus compose and Kubernetes notes), pairing, day to day, and troubleshooting (the plugin's own error strings).Linked from
docs/plugins.md(intro) and thedocs/README.mdindex.Limitations the doc states plainly
send-firstexample (examples: send-first, sign and submit a thread's first message clankmail#15), and the other side replies through its plugin. The doc links to it and gives itsgo runcommand, with--max-body 16384for muster's 16 KiB chief-body limit. The muster plugin itself stays reply-only.v0.135.0predates both). The doc says to build both the muster server and the plugin frommainuntil one does, and names what breaks on an older server (clankmail threads do not route). Compose instructions setMUSTER_IMAGE/MUSTER_VERSIONfor the locally built image and give the plugin service in full, with itsimage:and healthcheck override. The release archives do not ship the binary.CLANKMAIL_PEERSneeds the container re-created (rm + re-run,docker compose up -d, or the Deployment env); the doc says a plaindocker restartkeeps the old env.secretsget/list/create/update/delete andpods/execin every namespace. Least-privilege: the standing access is gone, but it keeps cluster-widerolebindingsget/create,bindonmuster-agent-namespaceandnamespacesdelete, so it can bind itself in the plugin's namespace and read the Secret. A compromised muster-server can therefore sign as@<owner>/chief. What isolates the key: another cluster, ordocs/provisioner.md'sValidatingAdmissionPolicywith the plugin's namespace outside the agent prefix and outside muster's own namespace.docs/configuration.md's admin-socket note carried the same wrong implication and is corrected too. (RBAC checked againstdocs/provisioner.md; the repo ships no RBAC manifests, so that doc is the only source.)docker compose exec muster-clankmail …(compose names the container<project>-muster-clankmail-1), and the compose service publishes127.0.0.1:8080for/health.MUSTER_VERSION=localalso retags thestt-cohereimage, which the doc now says.sender_verifiedis a field on the stored message and the tools' JSON, and the doc now says so instead of implying a positive mark.HEALTHCHECKprobes/muster-server. A plugin container needs--no-healthcheck, or the exec-form/muster-clankmail showunder compose.@owner/chiefto a new key, or recovering a half-finishedidentity grant, needs the library.Correction to
docs/plugins.md: it said a ClankMail thread is bound bymuster-clankmail send --bind <session>. That command does not exist. The text now says the plugin has no send command and that the first sender binds the thread by hand.🔴 Merge order: ZacxDev/clankmail#15 first. The
send-firstlink is deliberately still on the PR branch and is retargeted after #15 merges. Until it merges, the doc's link points at that PR's branch (tree/feat/example-send-first-message/go/examples/send-first) and itsgo run …/send-first@maincommand fails, because clankmailmaindoes not have the example yet. After #15 merges, change the link totree/main/go/examples/send-first, then merge this PR. (A branch name with a slash is not a valid Go version query, so the command uses@mainand will be correct after the merge.)Gates (on 40d2557)
go test ./internal/modulegate/passes (includes the doc-link checker).make leakscanis clean", which was false: it was run withoutMUSTER_LEAKSCAN_KEY, so the denied-identifier check was skipped, and CI's leak gate refused the doc's 9 mentions of the private hub domain. Now run with the key: positive control at b0f5e3b reproduces exactly those 9 findings (rc 1); at 40d2557leakscan_test.py(19 tests),--self-testand the scan all pass, 0 findings across 2273 files, with "key present … the denied-identifier check is on". A grep of the doc for other private identifiers also finds none. The CIleak gatejob on this head is the authority.docker compose config -qacceptsdeploy/docker-compose.ymlmerged with the doc's plugin service (rc 0); both resolve tomuster:local, the plugin publishes127.0.0.1:8080, and with--profile stt-coherethe STT image resolves toghcr.io/zacxdev/muster-stt-cohere:local.Verified locally against a throwaway hub (clankmail
main85b8d43), using the image built from this branch for the container commands. muster was replaced by a stub that answers the plugin routes, not a real server. Checked:keygen,identity claim/grant,show,/health,peer verifyandrequestssender_verified: trueon its own root. This was checked with the earlier inline program. The step now usessend-first. Its own command,go run github.com/ZacxDev/clankmail/go/examples/send-first@48b0e4ewith the doc's flags, was run against a throwaway local hub: it was accepted and printed anm_id, and a 16385-byte body with--max-body 16384was refused before sending.send-firstwas not re-run through two plugins.E_AUTHstrings in the troubleshooting tableThe round-2 and round-3 text (compose service and exec forms, re-create steps, RBAC caveat) was not run end to end; only the compose config parse above was checked. The RBAC paragraph was checked against
docs/provisioner.md, not against a live cluster.Not verified: the hosted hub itself (no handle was claimed there), and a real muster's draft cards.
🤖 Generated with Claude Code