operator-newsletters: the brand PUT writes Listmonk's bullet mask back as the OIDC secret #1613
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#1613
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
operator-newslettersandmember-newslettersare the drive's only two reds (43/45 green, 0 skips). Both roles reach kanidm, authenticate, and come back to Listmonk's callback — where the token exchange is rejected and Listmonk falls back to its own local login form:This is not the known own-VPS carrier frontier.
pairisgreen(231 ms) andlegs.jsoncarries noskiprows and no skip reasons at all —verdict.jsonreads"skip": 0. The frontier named in the prompt did not gate this run; this red is a new, specific defect.Evidence
The box was still up. The prompt's access line was refused (
Permission denied (publickey)), but the run's ownartifacts/live-box.jsonnames the harness identity —state/rent-operator/id_ed25519— and that key logs in. All findings below are read-only queries against the live droplet, corroborated bylogs/droplet-journal.txt.1. Only newsletters 401s. Every sibling app's token exchange succeeds; newsletters is the sole failure, at exactly the two leg timestamps:
So the client credential is wrong, not the IdP, the audience, or the redirect.
2. The stored secret is Listmonk's own UI mask. From the live box:
e280a2is UTF-8 U+2022 BULLET, 48 of them. The literal mask is persisted as the credential. kanidm is right to 401 it.3. The SMTP relay password is clobbered the same way — collateral damage nobody has noticed:
4. The mechanism.
GET /api/settingsmasks every secret (verified live on the box):Three oneshots each do GET → jq-merge → PUT the whole object back, and none strips the masked fields.
newsletters-brand.serviceis the last writer — it starts afternewsletters-oidcfinished and runs on past it:Its script merges only the brand keys and PUTs everything else back verbatim, bullets included:
So
newsletters-oidcwrites the real secret at 22:06:07, andnewsletters-brandoverwrites it with the mask by 22:06:57 — 2 minutes before the sign-in legs run. Each unit clobbers the previous one's secret;newsletters-oidc's own PUT is what flattened the SMTP password set moments earlier.5. The source at HEAD knows about the masking but only uses it for the drift check, never to scrub the PUT.
internal/clan/newsletters.go:595:grep -n 'scrub\|unmask\|bullet\|2022' internal/clan/newsletters.goreturns only that comment — there is no scrub before any of the three PUT sites (newsletters.go:424,:605,:724).Note on
artifacts/healer-refusal.json: the in-run healer asserts this fault was "healed in30db5680" and filed a different (logo-upload) issue instead. That commit does not exist —git log 30db5680→unknown revision, and HEAD is stillae2a2ecd, the very commitverdict.jsonrecords for this drive. The OIDC clobber is unfixed and live in the tree.Suspected layer
Product — a real defect in the shipped gateway config, not a harness artifact and not infra. The rehearsal correctly reds on a door that genuinely does not open: no member or operator can sign in to the Newsletters port on any deploy, and the community's mail relay password is destroyed on the same pass.
Not a Listmonk bug. Listmonk preserves a secret when the PUT sends
""(the frontend's convention for "unchanged"); sending the bullets literally stores the bullets. The provisioners send the bullets.What plugging it needs
renderNewslettersBrand, the OIDC reconciler,renderListmonkSMTP): before the PUT, rewrite any all-bullet string to""so Listmonk retains what it already holds — e.g. a shared jqwalk(if type=="string" and test("^\u2022+$") then "" else . end)applied to$current— while still setting the fields that unit genuinely owns.newsletters-oidclast leaves the same race. Scrubbing makes every writer safe regardless of order.security.oidc.client_secretandsmtp[0].passwordin the DB are not all-bullets — the currentfiles-healthy-style probes and the control-plane's newsletters health check (which dials the loopback, per the journal at 22:03:18) both pass while these credentials are rubble.docs/GOTCHAS.mdentry: an API that masks secrets on read makes every GET→merge→PUT reconciler a credential shredder — there is no existing entry for this class.Absences
legs.json,verdict.json,journey.json,droplet-journal.txtand the helper/electron logs are all present and complete. Thelogs/guest-*.logfiles are 127-byte stubs ("the guest was never created, so there is nothing to ask") andqemu.logrecordsspawn qemu-system-x86_64 ENOENT— both expected for a rented-droplet target with no local VM, not evidence of a harvest failure.drive
20260918T211405Zred atmember-newsletters:newsletters (oidc) showed its OWN login form to proof-member at https://newsletters.roles-proof.idss.nz/auth/oidc?code=eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4R0NNIiwia2lkIjoiOGNiMWU3NTQ4NWQxIn0.NF3o1f8Epevidence:
/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T211405Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedPlugged on main by the drive's own healer in
679af844— the reporter ran before that push landed, which is why this ticket reads the tree as unfixed (the30db5680inhealer-refusal.jsonwas the healer's pre-rebase sha). Checked against this ticket's list: (1) one shared rewrite,newslettersBlankMaskedSecrets, blanks all ten fieldshandleGetSettingsmasks, wired into all three reconcilers; (2) order-independent — per-reconciler, the owner sets its secret again after the blanking; (3) render testTestRenderNewsletters_ReconcilersNeverEchoAMaskedSecretBack; (4) GOTCHAS #256. Not done: the drive-level DB assertion that the stored secrets are not all-bullets — both newsletters door legs red on exactly this fault, so the drive already catches the OIDC half; the SMTP half stays unasserted until a send leg exists. Live proof is the next fire of the roles-proof drive.