mail: RenderMail's services.roundcube unconditionally pulls in nginx+ACME — blocks any real deploy without security.acme.acceptTerms #579
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#579
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?
Found live
While driving #319's golden-clan-lab smoke-mail session (ADR 0174 standing), deploying the real
internal/clan/mail.goRenderMail()output to a lab node (clan machines update node1) failed at NixOS eval time:renderRoundcube(internal/clan/mail.go) setsservices.roundcube.hostNameunconditionally. Nixpkgs'services.roundcubemodule wires an nginx virtualHost withenableACMEby default wheneverhostNameis set (unless explicitly overridden) — which forces the standingsecurity.acme.acceptTermsassertion.RenderMailnever setssecurity.acme.acceptTerms/security.acme.defaults.email, nor does it disable the module's auto-ACME wiring in favour of the front-door's own cert (ADR 0074/0116: the front door already fronts Roundcube's host over the mesh, so this node-local nginx+ACME vhost looks unintended — Roundcube likely only needs a loopback listener here, not its own public cert).Impact
Any real production mail deploy (once mail is selectable past P4-S2 gating) would hit this exact eval-time assertion and fail to build the node's toplevel at all — a hard, catalogue-wide block, not a soft/runtime fault. This session worked around it for the lab-only deploy by dropping
services.roundcube/services.postgresqlentirely (not needed for #319's sendreceive/degraded/recover acceptance) — seedocs/spike-findings/smoke-mail-319.md's 2026-08-15 session-4 entry. That workaround is lab-only and does not touchRenderMailitself.Suggested fix
Either: (a) disable the roundcube module's automatic nginx+ACME vhost (bind Roundcube to loopback/mesh only, matching Stalwart's own mesh-only posture, and let the front door terminate TLS as it already does for the webmail host), or (b) if a node-local cert is genuinely wanted, wire
security.acme.acceptTerms = true+defaults.emaildeclaratively from community config. Needs a real-deploy proof (golden-clan-lab or equivalent) before considered closed — this is exactly the class of bug that only surfaces once code meets a real NixOS eval, per #319/#320's pattern.Out of #319's scope (mail's own send/receive smoke never exercises Roundcube) — filed separately per the ticket's "work only this ticket" rule.
Ruled by agent under ADR 0174 — veto anytime. This is a bug report with a proposed fix, not itself a ruling; no code changed here.
swarm-claim host=elitebook-distributed-server-03 run=6774
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #579 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
3503757d41is not reachable from origin/main (not landed on main)envelope
close-report for #579 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope